We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Change structure array config.php

How I can change the structure of the configuration list and Phalcon-dev-tools can find the necessary settings to run the commands?

return new \Phalcon\Config([
    'databases' => [
        'default' => [
                'adapter' => 'Postgresql',
                 'host' => 'localhost',
                 'username' => 'xerron',
                 'password' => 'root',
                 'dbname' => 'db_uwu'
        ],
         'test' => [
                'adapter' => 'Mysql',
                 'host' => 'localhost',
                 'username' => 'xerron',
                 'password' => 'root',
                 'dbname' => 'db_uwu'
        ]
    ],

    'directories' => [
        'modulesDir' => APP_PATH . '/core/modules/',
        'themesDir' => APP_PATH . '/core/views/',
        'languagesDir' => APP_PATH . '/app/default/lang/',
        'modelsDir' => APP_PATH . '/core/models/',
        'migrationsDir' => APP_PATH . '/core/migrations/',
        'partialsDir' => APP_PATH . '/core/views/sui/partials/',
        'layoutsDir' => APP_PATH . '/core/views/sui/layouts/',
        'viewsDir' => APP_PATH . '/core/views/sui/',
        'cacheDir' => APP_PATH . '/var/cache/default/',
        'cacheVoltDir' => APP_PATH . '/var/cache/default/volt/',
        'cacheFrontDir' => APP_PATH . '/var/cache/default/front/',
        'cacheConfigDir' => APP_PATH . '/var/cache/default/config/',
        'cacheDiscoveryDir' => APP_PATH . '/var/cache/default/discovery/',
        'cacheTranslateFileDir' => APP_PATH . '/var/generation/default/translations/',
        'logDir' => APP_PATH . '/var/log/default/',
        'backupDir' => APP_PATH . '/var/backup/default/',
        'dbDir' => APP_PATH . '/var/db/default/',
        'sessionDir' => APP_PATH . '/var/session/default/'
    ],

    'baseUri' => '/',

    /* zh_CN ja_JP de_DE fr_FR es_ES it_IT ru_RU uk_UA hu_HU da_DK nl_BE ro_RO en_US */
    'languages' => [
        'es' => 'es_ES',
        'en' => 'en_US'
    ],

    'localeDefault' => 'en_US',

    // code ....
]);
edited Oct '16

I'd create a dev config.php to map and wrap around your modified config and return the proper keys.

I know it's hacky, but I don't think you can customize the dev-tools other than fork it...