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