123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226 |
- <?php
- return
- [
- /**
- * ---------------------------------------------------------
- * Base URL.
- * ---------------------------------------------------------
- *
- * Base URL of your application.
- *
- * It will be auto-detected in a web environment if left empty
- * but should be configured if you plan to build URLs in the
- * command line.
- */
- 'base_url' => '',
- /**
- * ---------------------------------------------------------
- * Clean URLs
- * ---------------------------------------------------------
- *
- * Set to true to hide "index.php" from your urls.
- */
- 'clean_urls' => true,
- /**
- * ---------------------------------------------------------
- * Timezone
- * ---------------------------------------------------------
- *
- * Set the default timezone used by various PHP date functions.
- */
- 'timezone' => 'UTC',
- /**
- * ---------------------------------------------------------
- * Charset
- * ---------------------------------------------------------
- *
- * Default character set used internally in the framework.
- */
- 'charset' => 'UTF-8',
- /**
- * ---------------------------------------------------------
- * Language
- * ---------------------------------------------------------
- *
- * Default application language and locale.
- */
- 'default_language' => ['strings' => 'en_US', 'locale' => [LC_ALL => ['en_US.UTF-8', 'en_US.utf8', 'C'], LC_NUMERIC => 'C']],
- /**
- * ---------------------------------------------------------
- * Languages
- * ---------------------------------------------------------
- *
- * If the first segment of the request path matches the language (array key)
- * then the default language will be set to the mapped language (array value).
- */
- 'languages' =>
- [
- //'no' => ['strings' => 'nb_NO', 'locale' => [LC_ALL => ['nb_NO.UTF-8', 'nb_NO.utf8', 'C'], LC_NUMERIC => 'C']],
- //'fr' => ['strings' => 'fr_FR', 'locale' => [LC_ALL => ['fr_FR.UTF-8', 'fr_FR.utf8', 'C'], LC_NUMERIC => 'C']],
- ],
- /**
- * ---------------------------------------------------------
- * Language cache
- * ---------------------------------------------------------
- *
- * Enabling language caching can speed up applications with a lot of language files by
- * reducing the number of files it has to load on every request.
- *
- * Use the default cache store by setting the config value to TRUE and choose a specific cache configuration
- * by specifying its name (as specified in the cache configuration).
- */
- 'language_cache' => false,
- /**
- * ---------------------------------------------------------
- * Commands
- * ---------------------------------------------------------
- *
- * This is where you register your reactor commands.
- * The array key is the command name and the array value
- * is the command class.
- */
- 'commands' =>
- [
- 'greeting' => 'app\console\commands\Greeting',
- ],
- /**
- * ---------------------------------------------------------
- * Services
- * ---------------------------------------------------------
- *
- * Services to register in the dependecy injection container.
- * They will be registered in the order that they are defined.
- *
- * core: Services that are required for both the web an the command line interface
- * web : Services that are only required for the web
- * cli : Services that are only required for the command line interface
- */
- 'services' =>
- [
- 'core' =>
- [
- 'mako\application\services\SignerService',
- 'mako\application\services\HTTPService',
- 'mako\application\services\LoggerService',
- 'mako\application\services\ViewFactoryService',
- //'mako\application\services\SessionService',
- 'mako\application\services\DatabaseService',
- //'mako\application\services\RedisService',
- 'mako\application\services\I18nService',
- //'mako\application\services\HumanizerService',
- //'mako\application\services\CacheService',
- //'mako\application\services\CryptoService',
- //'mako\application\services\ValidatorFactoryService',
- //'mako\application\services\PaginationFactoryService',
- 'mako\application\services\GatekeeperService',
- //'mako\application\services\EventService',
- //'mako\application\services\CommandBusService',
- ],
- 'web' =>
- [
- 'mako\application\services\web\ErrorHandlerService',
- ],
- 'cli' =>
- [
- 'mako\application\services\cli\ErrorHandlerService',
- ],
- ],
- /**
- * ---------------------------------------------------------
- * Packages
- * ---------------------------------------------------------
- *
- * Packages to boot during the application boot sequence.
- * They will be booted in the order that they are defined.
- *
- * core: Packages that are required for both the web an the command line interface
- * web : Packages that are only required for the web
- * cli : Packages that are only required for the command line interface
- */
- 'packages' =>
- [
- 'core' =>
- [
- ],
- 'web' =>
- [
- ],
- 'cli' =>
- [
- ],
- ],
- /**
- * ---------------------------------------------------------
- * Secret
- * ---------------------------------------------------------
- *
- * The secret is used to provide cryptographic signing, and should be set to a unique, unpredictable value.
- * You should NOT use the secret included with the framework in a production environment!
- */
- 'secret' => 'hex:2791a763a64b315b932ccf68de887f4cccb4ce85bf8ce5d6789f7bddf650a5ce',
- /**
- * ---------------------------------------------------------
- * Trusted proxies
- * ---------------------------------------------------------
- *
- * If your application isn't behind a proxy you trust then you can (and should) leave this empty.
- * If it is behind a proxy then you can help the framework return the correct client IP (using the X-Forwarded-For header)
- * by listing your proxy IP address(es) here.
- */
- 'trusted_proxies' =>
- [
- ],
- /**
- * ---------------------------------------------------------
- * Serialization whitelist.
- * ---------------------------------------------------------
- *
- * Array of classes that you'll allow the framework to deserialize.
- * Set to FALSE for none and TRUE for all.
- */
- 'deserialization_whitelist' => false,
- /**
- * ---------------------------------------------------------
- * Error handling
- * ---------------------------------------------------------
- *
- * log_errors : Set to true if you want to log errors caught by the Mako errors handler.
- * display_errors: Set to true to display errors caught by the mako error handlers.
- */
- 'error_handler' =>
- [
- 'log_errors' => true,
- 'display_errors' => true, // It is recommended to set this value to false when you are in production.
- ],
- /**
- * ---------------------------------------------------------
- * Class aliases
- * ---------------------------------------------------------
- *
- * The key is the alias and the value is the actual class.
- */
- 'class_aliases' =>
- [
- ],
- ];
|