processConfiguration($configuration, $configs); $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); $loader->load('services/controller.yml'); $loader->load('services/security.yml'); $loader->load('services/repositories.yml'); } public function prepend(ContainerBuilder $container) { $this->prependAuthorization($container); $this->prependRoute($container); } protected function prependRoute(ContainerBuilder $container) { //declare routes for person bundle $container->prependExtensionConfig('chill_main', array( 'routing' => array( 'resources' => array( '@ChillTaskBundle/Resources/config/routing.yml' ) ) )); } protected function prependAuthorization(ContainerBuilder $container) { $container->prependExtensionConfig('security', array( 'role_hierarchy' => array( TaskVoter::UPDATE => [TaskVoter::SHOW], TaskVoter::CREATE => [TaskVoter::SHOW] ) )); } }