Skip to content

Commit 207adaf

Browse files
authored
Merge pull request #214 from collapso/master
Update default template referencing to use the default since Symfony 3.4
2 parents a33e11e + 24b0563 commit 207adaf

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

DependencyInjection/Configuration.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -275,19 +275,19 @@ protected function addRenderSection($rootNode)
275275
->addDefaultsIfNotSet()
276276
->fixXmlConfig('resource')
277277
->children()
278-
->scalarNode('path')->defaultValue('SpyTimelineBundle:Timeline')->end()
279-
->scalarNode('fallback')->defaultValue('SpyTimelineBundle:Timeline:default.html.twig')->end()
278+
->scalarNode('path')->defaultValue('@SpyTimeline/Timeline')->end()
279+
->scalarNode('fallback')->defaultValue('@SpyTimeline/Timeline/default.html.twig')->end()
280280
->arrayNode('i18n')
281281
->children()
282282
->scalarNode('fallback')->isRequired()->end()
283283
->end()
284284
->end()
285285
->arrayNode('resources')
286-
->defaultValue(array('SpyTimelineBundle:Action:components.html.twig'))
286+
->defaultValue(array('@SpyTimeline/Action/components.html.twig'))
287287
->validate()
288-
->ifTrue(function ($v) { return !in_array('SpyTimelineBundle:Action:components.html.twig', $v); })
288+
->ifTrue(function ($v) { return !in_array('@SpyTimeline/Action/components.html.twig', $v); })
289289
->then(function ($v) {
290-
return array_merge(array('SpyTimelineBundle:Action:components.html.twig'), $v);
290+
return array_merge(array('@SpyTimeline/Action/components.html.twig'), $v);
291291
})
292292
->end()
293293
->prototype('scalar')->end()

Tests/Units/DependencyInjection/Configuration.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ protected function getDefaultOutput()
7676
'delivery' => 'immediate',
7777
),
7878
'render' => array(
79-
'path' => 'SpyTimelineBundle:Timeline',
80-
'fallback' => 'SpyTimelineBundle:Timeline:default.html.twig',
79+
'path' => '@SpyTimeline/Timeline',
80+
'fallback' => '@SpyTimeline/Timeline/default.html.twig',
8181
'resources' => array(
82-
'SpyTimelineBundle:Action:components.html.twig',
82+
'@SpyTimeline/Action/components.html.twig',
8383
),
8484
),
8585
'query_builder' => array(

0 commit comments

Comments
 (0)