I have generated new bundle: RusabTestBundle. It has among other things files:
- DependencyInjection
-- RusabTestBundleExtension.php
-- Configuration.php
In RusabTestBundleExtension.php I have:
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.yml');
In Configuration.php I have:
$rootNode = $treeBuilder->root('rusab_test_service');
Next:
- Resources
-- services.yml
In services.yml I paste:
rusab_test_service:
And I have error:
There is no extension able to load the configuration for "rusab_test_service" (in /xxx/src/Rusab/TestBundle/DependencyInjection/../Resources/config/services.yml). Looked for namespace "rusab_test_service", found none
But I i paste
rusab_test_service:
to
app/config/config.yml
then this is working ok.
Why? I know, I can import services.yml in app/config/config.yml, but for what is loader in RusabTestBundleExtension.php?
rusab_test
– Alister Bulman