ACC SHELL
<?php //netteCache[01]000048a:1:{s:4:"time";s:21:"0.36991200 1699882597";}?><?php
// source file /srv/www/vhosts/czerwenka/app/config/config.neon production
/**
* @property Nette\Caching\Storages\FileJournal $cacheJournal
* @property Nette\Caching\Storages\FileStorage $cacheStorage
* @property Nette\Caching\Storages\PhpFileStorage $templateCacheStorage
* @property Nette\Http\Request $httpRequest
* @property Nette\Http\Response $httpResponse
* @property Nette\Http\Context $httpContext
* @property Nette\Http\Session $session
* @property Nette\Http\User $user
* @property Nette\Application\Application $application
* @property Nette\Application\Routers\RouteList $router
* @property Nette\Application\PresenterFactory $presenterFactory
* @property Nette\Mail\SendmailMailer $mailer
* @property Authenticator $authenticator
* @property Model $model
* @property Nette\Database\Connection $database
* @property Nette\DI\Container $container
*/
class SystemContainer extends Nette\DI\Container
{
public $parameters = array(
'database' => array(
'driver' => 'mysql',
'host' => 'localhost',
'dbname' => 'test',
'user' => NULL,
'password' => NULL,
),
'appDir' => '/srv/www/vhosts/czerwenka/app',
'wwwDir' => '/srv/www/vhosts/czerwenka',
'productionMode' => TRUE,
'consoleMode' => FALSE,
'tempDir' => '/srv/www/vhosts/czerwenka/app/../temp',
'environment' => 'production',
);
public $classes = array(
'nette\\object' => FALSE,
'nette\\caching\\storages\\ijournal' => 'cacheJournal',
'nette\\caching\\storages\\filejournal' => 'cacheJournal',
'nette\\caching\\istorage' => 'cacheStorage',
'nette\\caching\\storages\\filestorage' => 'cacheStorage',
'nette\\caching\\storages\\phpfilestorage' => 'templateCacheStorage',
'nette\\http\\requestfactory' => 'httpRequestFactory',
'nette\\http\\irequest' => 'httpRequest',
'nette\\http\\request' => 'httpRequest',
'nette\\http\\iresponse' => 'httpResponse',
'nette\\http\\response' => 'httpResponse',
'nette\\http\\context' => 'httpContext',
'nette\\http\\session' => 'session',
'nette\\http\\iuser' => 'user',
'nette\\http\\user' => 'user',
'nette\\application\\application' => 'application',
'nette\\arraylist' => 'router',
'traversable' => 'router',
'iteratoraggregate' => 'router',
'countable' => 'router',
'arrayaccess' => 'router',
'nette\\application\\irouter' => 'router',
'nette\\application\\routers\\routelist' => 'router',
'nette\\application\\ipresenterfactory' => 'presenterFactory',
'nette\\application\\presenterfactory' => 'presenterFactory',
'nette\\mail\\imailer' => 'mailer',
'nette\\mail\\sendmailmailer' => 'mailer',
'nette\\security\\iauthenticator' => 'authenticator',
'authenticator' => 'authenticator',
'model' => 'model',
'pdo' => 'database',
'nette\\database\\connection' => 'database',
'nette\\freezableobject' => 'container',
'nette\\ifreezable' => 'container',
'nette\\di\\icontainer' => 'container',
'nette\\di\\container' => 'container',
);
public $meta = array();
/**
* @return Nette\Caching\Storages\FileJournal
*/
protected function createServiceCacheJournal()
{
$service = new Nette\Caching\Storages\FileJournal('/srv/www/vhosts/czerwenka/app/../temp');
return $service;
}
/**
* @return Nette\Caching\Storages\FileStorage
*/
protected function createServiceCacheStorage()
{
$service = new Nette\Caching\Storages\FileStorage('/srv/www/vhosts/czerwenka/app/../temp', $this->cacheJournal);
return $service;
}
/**
* @return Nette\Caching\Storages\PhpFileStorage
*/
protected function createServiceTemplateCacheStorage()
{
$service = new Nette\Caching\Storages\PhpFileStorage('/srv/www/vhosts/czerwenka/app/../temp', $this->cacheJournal);
return $service;
}
/**
* @return Nette\Http\RequestFactory
*/
protected function createHttpRequestFactory()
{
$service = new Nette\Http\RequestFactory;
$service->setEncoding('UTF-8');
return $service;
}
/**
* @return Nette\Http\Request
*/
protected function createServiceHttpRequest()
{
$service = $this->createHttpRequestFactory()->createHttpRequest();
if (!$service instanceof Nette\Http\Request) {
throw new Nette\UnexpectedValueException('Unable to create service \'httpRequest\', value returned by factory is not Nette\\Http\\Request type.');
}
return $service;
}
/**
* @return Nette\Http\Response
*/
protected function createServiceHttpResponse()
{
$service = new Nette\Http\Response;
return $service;
}
/**
* @return Nette\Http\Context
*/
protected function createServiceHttpContext()
{
$service = new Nette\Http\Context($this->httpRequest, $this->httpResponse);
return $service;
}
/**
* @return Nette\Http\Session
*/
protected function createServiceSession()
{
$service = new Nette\Http\Session($this->httpRequest, $this->httpResponse);
return $service;
}
/**
* @return Nette\Http\User
*/
protected function createServiceUser()
{
$service = new Nette\Http\User($this);
return $service;
}
/**
* @return Nette\Application\Application
*/
protected function createServiceApplication()
{
$service = new Nette\Application\Application($this->presenterFactory, $this->router, $this->httpRequest, $this->httpResponse, $this->session);
$service->catchExceptions = TRUE;
Nette\Application\Diagnostics\RoutingPanel::initialize($service, $this->httpRequest);
return $service;
}
/**
* @return Nette\Application\Routers\RouteList
*/
protected function createServiceRouter()
{
$service = new Nette\Application\Routers\RouteList;
return $service;
}
/**
* @return Nette\Application\PresenterFactory
*/
protected function createServicePresenterFactory()
{
$service = new Nette\Application\PresenterFactory('/srv/www/vhosts/czerwenka/app', $this);
return $service;
}
/**
* @return Nette\Mail\SendmailMailer
*/
protected function createServiceMailer()
{
$service = new Nette\Mail\SendmailMailer;
return $service;
}
/**
* @return Authenticator
*/
protected function createServiceAuthenticator()
{
$service = $this->model->createAuthenticatorService();
if (!$service instanceof Authenticator) {
throw new Nette\UnexpectedValueException('Unable to create service \'authenticator\', value returned by factory is not Authenticator type.');
}
return $service;
}
/**
* @return Model
*/
protected function createServiceModel()
{
$service = new Model($this->database);
return $service;
}
/**
* @return Nette\Database\Connection
*/
protected function createServiceDatabase()
{
$service = new Nette\Database\Connection('mysql:host=localhost;dbname=test', NULL, NULL, NULL, new Nette\Database\Reflection\DiscoveredReflection($this->cacheStorage));
$service->setCacheStorage($this->cacheStorage);
return $service;
}
/**
* @return Nette\DI\Container
*/
protected function createServiceContainer()
{
return $this;
}
public function initialize()
{
date_default_timezone_set('Europe/Prague');
Nette\Caching\Storages\FileStorage::$useDirectories = TRUE;
}
}
ACC SHELL 2018