123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167 |
- <?php
- /*
- |--------------------------------------------------------------------------
- | PIMF Application Configuration
- |--------------------------------------------------------------------------
- |
- | The PIMF configuration is responsible for returning an array
- | of configuration options. By default, we use the variable $config provided
- | with PIMF - however, you are free to use your own storage mechanism for
- | configuration arrays.
- |
- */
- return array(
- /*
- |------------------------------------------------------------------------
- | The default environment mode for your application [testing|production]
- |------------------------------------------------------------------------
- */
- 'environment' => 'production',
- /*
- |------------------------------------------------------------------------
- | The default character encoding used by your application.
- |------------------------------------------------------------------------
- */
- 'encoding' => 'UTF-8',
- /*
- |------------------------------------------------------------------------
- | The default timezone of your application.
- | Supported timezones list: http://www.php.net/manual/en/timezones.php
- |------------------------------------------------------------------------
- */
- 'timezone' => 'UTC',
- /*
- |--------------------------------------------------------------------------
- | Is it regular HTTP or secure HTTPS
- |--------------------------------------------------------------------------
- */
- 'ssl' => false,
- /*
- |------------------------------------------------------------------------
- | Application meta
- |------------------------------------------------------------------------
- */
- 'app' => array(
- 'name' => 'Vanilla',
- 'key' => 'some5secret5key5here', // application key
- 'default_controller' => 'hello', // the name of the fallback controller
- 'routeable' => true, // get cleaner URLs or not
- 'url' => 'http://localhost', // URL used to access your application without a trailing slash.
- 'index' => '', // if you are using mod_rewrite to get cleaner URLs let it empty otherwise set index.php
- 'asset_url' => '', // the base URL used for your application's asset files
- ),
- /*
- |------------------------------------------------------------------------
- | Production environment settings
- |------------------------------------------------------------------------
- */
- 'production' => array(
- 'db' => array(
- 'driver' => 'mysql',
- 'host' => '127.0.0.1',
- 'database' => 'hello_world',
- 'username' => 'benchmarkdbuser',
- 'password' => 'benchmarkdbpass',
- 'charset' => 'utf8',
- 'port' => '3306',
- // 'unix_socket' => '',
- ),
- ),
- /*
- |------------------------------------------------------------------------
- | Bootstrapping and dependencies to php-version and extensions
- |------------------------------------------------------------------------
- */
- 'bootstrap' => array(
- 'local_temp_directory' => '/tmp/'
- ),
- /*
- |------------------------------------------------------------------------
- | Settings for the error handling behavior
- |------------------------------------------------------------------------
- */
- 'error' => array(
- 'ignore_levels' => array(E_USER_DEPRECATED),
- 'debug_info' => false, // true = if developing - false = if production
- 'log' => true,
- ),
- /*
- |--------------------------------------------------------------------------
- | Session settings
- |--------------------------------------------------------------------------
- */
- 'session' => array(
- // Session storage 'cookie', 'file', 'pdo', 'memcached', 'apc', 'redis', 'dba', 'wincache', 'memory'
- 'storage' => '',
- // If using file storage - default is null
- 'storage_path' => 'app/Vanilla/_session/',
- // If using the PDO (database) session storage
- 'database' => array(
- //'driver' => 'sqlite',
- //'database' => 'app/Vanilla/_session/session.db',
- ),
- // Garbage collection has a 2% chance of occurring for any given request to
- // the application. Feel free to tune this to your requirements.
- 'garbage_collection' => array(2, 100),
- // Session lifetime number of minutes
- 'lifetime' => 60,
- // Session expiration on web browser close
- 'expire_on_close' => false,
- // Session cookie name
- 'cookie' => 'pimf_session',
- // Session cookie path
- 'path' => '/',
- // Domain for which the session cookie is available.
- 'domain' => null,
- // If the cookie should only be sent over HTTPS.
- 'secure' => false,
- ),
- /*
- |--------------------------------------------------------------------------
- | Cache settings
- |--------------------------------------------------------------------------
- */
- 'cache' => array(
- // Cache storage 'pdo', 'file', 'memcached', 'apc', 'redis', 'dba', 'wincache', 'memory'
- 'storage' => '',
- // If using file storage - default is null
- 'storage_path' => 'app/Vanilla/_cache/',
- // If using the PDO (database) cache storage
- 'database' => array(
- //'driver' => 'sqlite',
- //'database' => 'app/Vanilla/_cache/cache.db',
- ),
- // If using Memcached and APC to prevent collisions with other applications on the server.
- 'key' => 'pimfmaster',
- // Memcached servers - for more check out: http://memcached.org
- 'memcached' => array(
- 'servers' => array('host' => '127.0.0.1', 'port' => 11211, 'weight' => 100),
- ),
- ),
- );
|