%PDF- %PDF-
Direktori : /www/varak.net/catalog.varak.net/temp/cache/Nette.Configurator/ |
Current File : //www/varak.net/catalog.varak.net/temp/cache/Nette.Configurator/Container_c91a5af2b9.php |
<?php // source: /www/varak.net/catalog.varak.net/app/config/config.neon class Container_c91a5af2b9 extends Nette\DI\Container { protected $meta = [ 'types' => [ 'Nette\Application\Application' => [1 => ['application.application']], 'Nette\Application\IPresenterFactory' => [1 => ['application.presenterFactory']], 'Nette\Application\LinkGenerator' => [1 => ['application.linkGenerator']], 'Nette\Caching\Storages\IJournal' => [1 => ['cache.journal']], 'Nette\Caching\IStorage' => [1 => ['cache.storage']], 'Nette\Http\RequestFactory' => [1 => ['http.requestFactory']], 'Nette\Http\IRequest' => [1 => ['http.request']], 'Nette\Http\Request' => [1 => ['http.request']], 'Nette\Http\IResponse' => [1 => ['http.response']], 'Nette\Http\Response' => [1 => ['http.response']], 'Nette\Http\Context' => [1 => ['http.context']], 'Nette\Bridges\ApplicationLatte\ILatteFactory' => [1 => ['latte.latteFactory']], 'Nette\Application\UI\ITemplateFactory' => [1 => ['latte.templateFactory']], 'Nette\Mail\IMailer' => [1 => ['mail.mailer']], 'Nette\Application\IRouter' => [1 => ['routing.router']], 'Nette\Security\IUserStorage' => [1 => ['security.userStorage']], 'Nette\Security\User' => [1 => ['security.user']], 'Nette\Http\Session' => [1 => ['session.session']], 'Tracy\ILogger' => [1 => ['tracy.logger']], 'Tracy\BlueScreen' => [1 => ['tracy.blueScreen']], 'Tracy\Bar' => [1 => ['tracy.bar']], 'Dibi\Connection' => [1 => ['dibi.connection']], 'RouterFactory' => [1 => ['routerFactory']], 'Base' => [1 => ['bookshelf']], 'Bookshelf' => [1 => ['bookshelf']], 'BasePresenter' => [1 => ['application.1', 'application.2', 'application.3', 'application.4']], 'Nette\Application\UI\Presenter' => [['application.1', 'application.2', 'application.3', 'application.4']], 'Nette\Application\UI\Control' => [['application.1', 'application.2', 'application.3', 'application.4']], 'Nette\Application\UI\Component' => [['application.1', 'application.2', 'application.3', 'application.4']], 'Nette\ComponentModel\Container' => [['application.1', 'application.2', 'application.3', 'application.4']], 'Nette\ComponentModel\Component' => [['application.1', 'application.2', 'application.3', 'application.4']], 'Nette\Application\UI\IRenderable' => [['application.1', 'application.2', 'application.3', 'application.4']], 'Nette\ComponentModel\IContainer' => [['application.1', 'application.2', 'application.3', 'application.4']], 'Nette\ComponentModel\IComponent' => [['application.1', 'application.2', 'application.3', 'application.4']], 'Nette\Application\UI\ISignalReceiver' => [['application.1', 'application.2', 'application.3', 'application.4']], 'Nette\Application\UI\IStatePersistent' => [['application.1', 'application.2', 'application.3', 'application.4']], 'ArrayAccess' => [['application.1', 'application.2', 'application.3', 'application.4']], 'Nette\Application\IPresenter' => [['application.1', 'application.2', 'application.3', 'application.4']], 'HomepagePresenter' => [1 => ['application.1']], 'BookshelfPresenter' => [1 => ['application.2']], 'ErrorPresenter' => [1 => ['application.3']], 'DataPresenter' => [1 => ['application.4']], 'Nette\DI\Container' => [1 => ['container']], ], 'services' => [ 'application.1' => 'HomepagePresenter', 'application.2' => 'BookshelfPresenter', 'application.3' => 'ErrorPresenter', 'application.4' => 'DataPresenter', 'application.application' => 'Nette\Application\Application', 'application.linkGenerator' => 'Nette\Application\LinkGenerator', 'application.presenterFactory' => 'Nette\Application\IPresenterFactory', 'bookshelf' => 'Bookshelf', 'cache.journal' => 'Nette\Caching\Storages\IJournal', 'cache.storage' => 'Nette\Caching\IStorage', 'container' => 'Nette\DI\Container', 'dibi.connection' => 'Dibi\Connection', 'http.context' => 'Nette\Http\Context', 'http.request' => 'Nette\Http\Request', 'http.requestFactory' => 'Nette\Http\RequestFactory', 'http.response' => 'Nette\Http\Response', 'latte.latteFactory' => 'Latte\Engine', 'latte.templateFactory' => 'Nette\Application\UI\ITemplateFactory', 'mail.mailer' => 'Nette\Mail\IMailer', 'routerFactory' => 'RouterFactory', 'routing.router' => 'Nette\Application\IRouter', 'security.user' => 'Nette\Security\User', 'security.userStorage' => 'Nette\Security\IUserStorage', 'session.session' => 'Nette\Http\Session', 'tracy.bar' => 'Tracy\Bar', 'tracy.blueScreen' => 'Tracy\BlueScreen', 'tracy.logger' => 'Tracy\ILogger', ], 'tags' => [ 'inject' => [ 'application.1' => true, 'application.2' => true, 'application.3' => true, 'application.4' => true, ], 'nette.presenter' => [ 'application.1' => 'HomepagePresenter', 'application.2' => 'BookshelfPresenter', 'application.3' => 'ErrorPresenter', 'application.4' => 'DataPresenter', ], ], 'aliases' => [ 'application' => 'application.application', 'cacheStorage' => 'cache.storage', 'httpRequest' => 'http.request', 'httpResponse' => 'http.response', 'nette.cacheJournal' => 'cache.journal', 'nette.httpContext' => 'http.context', 'nette.httpRequestFactory' => 'http.requestFactory', 'nette.latteFactory' => 'latte.latteFactory', 'nette.mailer' => 'mail.mailer', 'nette.presenterFactory' => 'application.presenterFactory', 'nette.templateFactory' => 'latte.templateFactory', 'nette.userStorage' => 'security.userStorage', 'router' => 'routing.router', 'session' => 'session.session', 'user' => 'security.user', ], ]; public function __construct(array $params = []) { $this->parameters = $params; $this->parameters += [ 'appDir' => '/www/varak.net/catalog.varak.net/app', 'wwwDir' => '/www/varak.net/catalog.varak.net/www', 'debugMode' => false, 'productionMode' => true, 'consoleMode' => false, 'tempDir' => '/www/varak.net/catalog.varak.net/app/../temp', ]; } public function createServiceApplication__1(): HomepagePresenter { $service = new HomepagePresenter; $service->injectPrimary( $this, $this->getService('application.presenterFactory'), $this->getService('routing.router'), $this->getService('http.request'), $this->getService('http.response'), $this->getService('session.session'), $this->getService('security.user'), $this->getService('latte.templateFactory') ); $service->injectModels($this->getService('bookshelf')); $service->invalidLinkMode = 1; return $service; } public function createServiceApplication__2(): BookshelfPresenter { $service = new BookshelfPresenter; $service->injectPrimary( $this, $this->getService('application.presenterFactory'), $this->getService('routing.router'), $this->getService('http.request'), $this->getService('http.response'), $this->getService('session.session'), $this->getService('security.user'), $this->getService('latte.templateFactory') ); $service->injectModels($this->getService('bookshelf')); $service->invalidLinkMode = 1; return $service; } public function createServiceApplication__3(): ErrorPresenter { $service = new ErrorPresenter; $service->injectPrimary( $this, $this->getService('application.presenterFactory'), $this->getService('routing.router'), $this->getService('http.request'), $this->getService('http.response'), $this->getService('session.session'), $this->getService('security.user'), $this->getService('latte.templateFactory') ); $service->invalidLinkMode = 1; return $service; } public function createServiceApplication__4(): DataPresenter { $service = new DataPresenter; $service->injectPrimary( $this, $this->getService('application.presenterFactory'), $this->getService('routing.router'), $this->getService('http.request'), $this->getService('http.response'), $this->getService('session.session'), $this->getService('security.user'), $this->getService('latte.templateFactory') ); $service->injectModels($this->getService('bookshelf')); $service->invalidLinkMode = 1; return $service; } public function createServiceApplication__application(): Nette\Application\Application { $service = new Nette\Application\Application( $this->getService('application.presenterFactory'), $this->getService('routing.router'), $this->getService('http.request'), $this->getService('http.response') ); $service->catchExceptions = true; $service->errorPresenter = 'Nette:Error'; Nette\Bridges\ApplicationTracy\RoutingPanel::initializePanel($service); return $service; } public function createServiceApplication__linkGenerator(): Nette\Application\LinkGenerator { $service = new Nette\Application\LinkGenerator( $this->getService('routing.router'), $this->getService('http.request')->getUrl(), $this->getService('application.presenterFactory') ); return $service; } public function createServiceApplication__presenterFactory(): Nette\Application\IPresenterFactory { $service = new Nette\Application\PresenterFactory(new Nette\Bridges\ApplicationDI\PresenterFactoryCallback($this, 1, null)); return $service; } public function createServiceBookshelf(): Bookshelf { $service = new Bookshelf($this->getService('dibi.connection')); return $service; } public function createServiceCache__journal(): Nette\Caching\Storages\IJournal { $service = new Nette\Caching\Storages\SQLiteJournal('/www/varak.net/catalog.varak.net/app/../temp/cache/journal.s3db'); return $service; } public function createServiceCache__storage(): Nette\Caching\IStorage { $service = new Nette\Caching\Storages\FileStorage('/www/varak.net/catalog.varak.net/app/../temp/cache', $this->getService('cache.journal')); return $service; } public function createServiceContainer(): Nette\DI\Container { return $this; } public function createServiceDibi__connection(): Dibi\Connection { $service = new DibiConnection([ 'driver' => 'mysqli', 'host' => '127.0.0.1', 'database' => 'knihovna', 'user' => 'waritko', 'pass' => 'blade666', 'charset' => 'utf8', ]); return $service; } public function createServiceHttp__context(): Nette\Http\Context { $service = new Nette\Http\Context($this->getService('http.request'), $this->getService('http.response')); trigger_error('Service http.context is deprecated.', 16384); return $service; } public function createServiceHttp__request(): Nette\Http\Request { $service = $this->getService('http.requestFactory')->createHttpRequest(); return $service; } public function createServiceHttp__requestFactory(): Nette\Http\RequestFactory { $service = new Nette\Http\RequestFactory; $service->setProxy([]); return $service; } public function createServiceHttp__response(): Nette\Http\Response { $service = new Nette\Http\Response; return $service; } public function createServiceLatte__latteFactory(): Nette\Bridges\ApplicationLatte\ILatteFactory { return new class ($this) implements Nette\Bridges\ApplicationLatte\ILatteFactory { private $container; public function __construct(Container_c91a5af2b9 $container) { $this->container = $container; } public function create(): Latte\Engine { $service = new Latte\Engine; $service->setTempDirectory('/www/varak.net/catalog.varak.net/app/../temp/cache/latte'); $service->setAutoRefresh(false); $service->setContentType('html'); Nette\Utils\Html::$xhtml = false; return $service; } }; } public function createServiceLatte__templateFactory(): Nette\Application\UI\ITemplateFactory { $service = new Nette\Bridges\ApplicationLatte\TemplateFactory( $this->getService('latte.latteFactory'), $this->getService('http.request'), $this->getService('security.user'), $this->getService('cache.storage'), null ); return $service; } public function createServiceMail__mailer(): Nette\Mail\IMailer { $service = new Nette\Mail\SendmailMailer; return $service; } public function createServiceRouterFactory(): RouterFactory { $service = new RouterFactory; return $service; } public function createServiceRouting__router(): Nette\Application\IRouter { $service = $this->getService('routerFactory')->createRouter(); return $service; } public function createServiceSecurity__user(): Nette\Security\User { $service = new Nette\Security\User($this->getService('security.userStorage')); return $service; } public function createServiceSecurity__userStorage(): Nette\Security\IUserStorage { $service = new Nette\Http\UserStorage($this->getService('session.session')); return $service; } public function createServiceSession__session(): Nette\Http\Session { $service = new Nette\Http\Session($this->getService('http.request'), $this->getService('http.response')); return $service; } public function createServiceTracy__bar(): Tracy\Bar { $service = Tracy\Debugger::getBar(); return $service; } public function createServiceTracy__blueScreen(): Tracy\BlueScreen { $service = Tracy\Debugger::getBlueScreen(); return $service; } public function createServiceTracy__logger(): Tracy\ILogger { $service = Tracy\Debugger::getLogger(); return $service; } public function initialize() { date_default_timezone_set('Europe/Prague'); $this->getService('http.response')->setHeader('X-Powered-By', 'Nette Framework'); $this->getService('http.response')->setHeader('Content-Type', 'text/html; charset=utf-8'); $this->getService('http.response')->setHeader('X-Frame-Options', 'SAMEORIGIN'); $this->getService('session.session')->exists() && $this->getService('session.session')->start(); Tracy\Debugger::$editorMapping = []; Tracy\Debugger::getLogger($this->getService('tracy.logger'))->mailer = [new Tracy\Bridges\Nette\MailSender($this->getService('mail.mailer'), null), 'send']; } }