<?php
/*
 * Local configuration file to provide any overrides to your app.php configuration.
 * Copy and save this file as app_local.php and make changes as required.
 * Note: It is not recommended to commit files with credentials such as app_local.php
 * into source code version control.
 */
return [
    /*
     * Debug Level:
     *
     * Production Mode:
     * false: No error messages, errors, or warnings shown.
     *
     * Development Mode:
     * true: Errors and warnings shown.
     */
    //'debug' => filter_var(env('DEBUG', false), FILTER_VALIDATE_BOOLEAN),
    'debug' => true,

    /*
     * Security and encryption configuration
     *
     * - salt - A random string used in security hashing methods.
     *   The salt value is also used as the encryption key.
     *   You should treat it as extremely sensitive data.
     */
    'Security' => [
        'salt' => env('SECURITY_SALT', '223fcc8b1843f2218ee014be348e990ee952105310d637c2d00f4506d5bedbf6'),
    ],

    /*
     * Connection information used by the ORM to connect
     * to your application's datastores.
     *
     * See app.php for more configuration options.
     */
'Datasources' => [
    'default' => [
        'host' => 'localhost',
        'username' => 'fit3047',
        'password' => 'fit3047',
        'database' => 'fit3047_onboardsystem',
        'driver' => 'Cake\Database\Driver\Mysql',
    ],

        /*
         * The test connection is used during the test suite.
         */
        'test' => [
            'host' => 'localhost',
            //'port' => 'non_standard_port_number',
            'username' => 'my_app',
            'password' => 'secret',
            'database' => 'test_myapp',
            //'schema' => 'myapp',
            'url' => env('DATABASE_TEST_URL', 'sqlite://127.0.0.1/tmp/tests.sqlite'),
        ],
    ],

    /*
     * Email configuration.
     *
     * Host and credential configuration in case you are using SmtpTransport
     *
     * See app.php for more configuration options.
     */
    'EmailTransport' => [
        'default' => [
        'className' => 'Smtp',
        'host' => 'sandbox.smtp.mailtrap.io',
        'port' => 2525,
        'username' => '51612bf19ad9d1',
        'password' => 'b1439c8c5e92a5',
        'tls' => false
    ]
    ],
    'Email' => [
    'default' => [
        'transport' => 'default',
        'from' => ['no-reply@powerproshop.com.au' => 'PowerProShop Support'],
        'emailFormat' => 'html'
    ]
    ],
];
