示例#1
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     $top = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR;
     $isInConfigCachingProcess = getenv(Core::IN_CONFIG_CACHING) !== false;
     parent::__construct([C::class => [C::TEMPLATES_LIST => ['welcome.html.twig'], C::TEMPLATES_FOLDER => $top . 'resources' . DIRECTORY_SEPARATOR . 'views', C::CACHE_FOLDER => $isInConfigCachingProcess === true ? $top . 'storage' . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR . 'templates' : null]]);
 }
示例#2
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct([C::class => [C::USER_NAME => 'root', C::PASSWORD => 'root', C::PDO_CONNECTION_STRING => 'mysql:host=127.0.0.1;dbname=limoncello', C::PDO_OPTIONS => [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]]]);
 }
示例#3
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct([C::class => [C::KEY_SERVER_ORIGIN => [C::KEY_SERVER_ORIGIN_SCHEME => 'http', C::KEY_SERVER_ORIGIN_HOST => 'localhost', C::KEY_SERVER_ORIGIN_PORT => '8080'], C::KEY_ALLOWED_ORIGINS => [C::VALUE_ALLOW_ORIGIN_ALL => true], C::KEY_ALLOWED_METHODS => ['GET' => true, 'POST' => true, 'PATCH' => true, 'PUT' => true, 'DELETE' => true], C::KEY_ALLOWED_HEADERS => [], C::KEY_EXPOSED_HEADERS => ['content-type' => true], C::KEY_IS_USING_CREDENTIALS => true, C::KEY_FLIGHT_CACHE_MAX_AGE => 0, C::KEY_IS_FORCE_ADD_METHODS => false, C::KEY_IS_FORCE_ADD_HEADERS => false, C::KEY_IS_CHECK_HOST => false]]);
 }
示例#4
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     $isInConfigCachingProcess = getenv(Core::IN_CONFIG_CACHING) !== false;
     $logPath = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'storage' . DIRECTORY_SEPARATOR . 'logs' . DIRECTORY_SEPARATOR . 'limoncello.log';
     parent::__construct([C::class => [C::KEY_NAME => getenv('APP_NAME'), C::KEY_IS_LOG_ENABLED => true, C::KEY_LOG_PATH => $logPath, C::KEY_LOG_LEVEL => Logger::DEBUG, C::KEY_IS_DEBUG => !$isInConfigCachingProcess]]);
 }
示例#5
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct([C::class => [C::HASH_ALGORITHM => PASSWORD_DEFAULT, C::HASH_COST => 10]]);
 }
示例#6
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct([RouterConfigInterface::class => static::DEFAULTS]);
 }