/home/kotech/web/sunnycreations.hk/public_html/vendor/league/route/src/RouteCollection.php
* Constructor.
*
* @param \Interop\Container\ContainerInterface $container
* @param \FastRoute\RouteParser $parser
* @param \FastRoute\DataGenerator $generator
*/
public function __construct(
ContainerInterface $container = null,
RouteParser $parser = null,
DataGenerator $generator = null
/home/kotech/web/sunnycreations.hk/public_html/vendor/composer/ClassLoader.php
/**
* Scope isolated include.
*
* Prevents access to $this/self from included files.
*/
function includeFile($file)
{
include $file;
}
/home/kotech/web/sunnycreations.hk/public_html/vendor/composer/ClassLoader.php
/**
* Scope isolated include.
*
* Prevents access to $this/self from included files.
*/
function includeFile($file)
{
include $file;
}
/home/kotech/web/sunnycreations.hk/public_html/vendor/composer/ClassLoader.php
*
* @param string $class The name of the class
* @return bool|null True if loaded, null otherwise
*/
public function loadClass($class)
{
if ($file = $this->findFile($class)) {
includeFile($file);
return true;
/home/kotech/web/sunnycreations.hk/public_html/src/App/Application.php
$this->container->share('response', "Zend\\Diactoros\\Response");
$this->container->share('request', function () {
return \Zend\Diactoros\ServerRequestFactory::fromGlobals();
});
$this->container->share('emitter', "Zend\\Diactoros\\Response\\SapiEmitter");
$this->route = new \League\Route\RouteCollection($this->container);
$this->plates = new \League\Plates\Engine("views");
/home/kotech/web/sunnycreations.hk/public_html/index.php
use App\EmailClient;
use League\Route\Http\Exception\NotFoundException;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use RedBeanPHP\R;
use Stringy\Stringy;
$app = new \App\Application();
$route = $app->getRoute();