Found sections ‚common‘, ‚production‘, ‚development‘ in configuration, but corresponding extensions are missin

Upozornění: Tohle vlákno je hodně staré a informace nemusí být platné pro současné Nette.
duskohu
Člen | 778
+
0
-

Caute neviete niekto preco mi robi toto? nacitavam niekolko config suborov, predpokladam ze to ma nieco docinenia so sekciami, ale neviem co.
bootstrap

$configurator ->addConfig(__DIR__ . '/CoreModule/config/config.neon');
$configurator ->addConfig(__DIR__ . '/CmsModule/config/config.neon');

neon1

common:
    parameters:
        database:
            driver: mysql
            host: ...
            dbname: ''
            user: ''
            password: ''
        theme:
            templatesDir: 'templates'
            mediaDir: 'media'
            themeName: 'baseTheme'
            layoutName: 'two.column'

    php:
        date.timezone: Europe/Prague
        #zlib.output_compression: yes

    nette:
        session:
            autoStart: smart
            expiration: +30 days
            savePath: %tempDir%/sessions

        application:
            errorPresenter: Error

        database:
            default:
                dsn: '%database.driver%:host=%database.host%;dbname=%database.dbname%'
                user: %database.user%
                password: %database.password%

    services:
        users: Users
    factories:

production < common:

development < common:

neon2

common:
    parameters:
            layoutName: 'one.column'

    services:
        test: Test
    factories:

production < common:

development < common:
David Grudl
Nette Core | 8228
+
0
-

Jaká verze frameworku a PHP?

duskohu
Člen | 778
+
0
-

php: 5.3.13
nette: 2.1-dev
https://github.com/…7c9112366790

David Matějka
Moderator | 6445
+
0
-

souvisi s tim tenhle commit
muzes to zapsat takhle:

use Nette\Config\Configurator;
$configurator->addConfig(__DIR__ . '/CoreModule/config/config.neon', Configurator::AUTO);
$configurator->addConfig(__DIR__ . '/CmsModule/config/config.neon', Configurator::AUTO);
duskohu
Člen | 778
+
0
-

Je to ono, dakujem :-)

David Grudl
Nette Core | 8228
+
0
-

fixed