diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 90f8681..fcb3879 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -275,19 +275,19 @@ protected function addRenderSection($rootNode) ->addDefaultsIfNotSet() ->fixXmlConfig('resource') ->children() - ->scalarNode('path')->defaultValue('SpyTimelineBundle:Timeline')->end() - ->scalarNode('fallback')->defaultValue('SpyTimelineBundle:Timeline:default.html.twig')->end() + ->scalarNode('path')->defaultValue('@SpyTimeline/Timeline')->end() + ->scalarNode('fallback')->defaultValue('@SpyTimeline/Timeline/default.html.twig')->end() ->arrayNode('i18n') ->children() ->scalarNode('fallback')->isRequired()->end() ->end() ->end() ->arrayNode('resources') - ->defaultValue(array('SpyTimelineBundle:Action:components.html.twig')) + ->defaultValue(array('@SpyTimeline/Action/components.html.twig')) ->validate() - ->ifTrue(function ($v) { return !in_array('SpyTimelineBundle:Action:components.html.twig', $v); }) + ->ifTrue(function ($v) { return !in_array('@SpyTimeline/Action/components.html.twig', $v); }) ->then(function ($v) { - return array_merge(array('SpyTimelineBundle:Action:components.html.twig'), $v); + return array_merge(array('@SpyTimeline/Action/components.html.twig'), $v); }) ->end() ->prototype('scalar')->end() diff --git a/Tests/Units/DependencyInjection/Configuration.php b/Tests/Units/DependencyInjection/Configuration.php index 1f0eef0..371ae26 100644 --- a/Tests/Units/DependencyInjection/Configuration.php +++ b/Tests/Units/DependencyInjection/Configuration.php @@ -76,10 +76,10 @@ protected function getDefaultOutput() 'delivery' => 'immediate', ), 'render' => array( - 'path' => 'SpyTimelineBundle:Timeline', - 'fallback' => 'SpyTimelineBundle:Timeline:default.html.twig', + 'path' => '@SpyTimeline/Timeline', + 'fallback' => '@SpyTimeline/Timeline/default.html.twig', 'resources' => array( - 'SpyTimelineBundle:Action:components.html.twig', + '@SpyTimeline/Action/components.html.twig', ), ), 'query_builder' => array(