You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@trigger_error(sprintf('Templates directory "%s" is deprecated since Symfony 4.2, use "%s" instead.', $absolutePath, $this->twigDefaultPath.'/bundles/'.$name), E_USER_DEPRECATED);
382
+
@trigger_error(sprintf('Loading Twig templates from "%s" directory is deprecated since Symfony 4.2, use "%s" instead.', $absolutePath, $this->twigDefaultPath.'/bundles/'.$name), E_USER_DEPRECATED);
Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/TranslationDebugCommand.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -145,7 +145,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
145
145
$viewsPaths = [];
146
146
if (is_dir($dir = $rootDir.'/Resources/views')) {
147
147
if ($dir !== $this->defaultViewsPath) {
148
-
$notice = sprintf('Storing templates in the "%s" directory is deprecated since Symfony 4.2, ', $dir);
148
+
$notice = sprintf('Loading Twig templates from "%s" directory is deprecated since Symfony 4.2, ', $dir);
149
149
@trigger_error($notice.($this->defaultViewsPath ? sprintf('use the "%s" directory instead.', $this->defaultViewsPath) : 'configure and use "twig.default_path" instead.'), E_USER_DEPRECATED);
150
150
}
151
151
$viewsPaths[] = $dir;
@@ -173,7 +173,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
173
173
}
174
174
if (is_dir($dir = sprintf('%s/Resources/%s/views', $rootDir, $bundle->getName()))) {
175
175
$viewsPaths[] = $dir;
176
-
$notice = sprintf('Storing templates for "%s" in the "%s" directory is deprecated since Symfony 4.2, ', $bundle->getName(), $dir);
176
+
$notice = sprintf('Loading Twig templates for "%s" from "%s" directory is deprecated since Symfony 4.2, ', $bundle->getName(), $dir);
177
177
@trigger_error($notice.($this->defaultViewsPath ? sprintf('use the "%s" directory instead.', $this->defaultViewsPath) : 'configure and use "twig.default_path" instead.'), E_USER_DEPRECATED);
178
178
}
179
179
} catch (\InvalidArgumentException$e) {
@@ -191,7 +191,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
191
191
$viewsPaths = [$path.'/templates'];
192
192
if (is_dir($dir = $path.'/Resources/views')) {
193
193
if ($dir !== $this->defaultViewsPath) {
194
-
@trigger_error(sprintf('Storing templates in the "%s" directory is deprecated since Symfony 4.2, use the "%s" directory instead.', $dir, $path.'/templates'), E_USER_DEPRECATED);
194
+
@trigger_error(sprintf('Loading Twig templates from "%s" directory is deprecated since Symfony 4.2, use the "%s" directory instead.', $dir, $path.'/templates'), E_USER_DEPRECATED);
195
195
}
196
196
$viewsPaths[] = $dir;
197
197
}
@@ -211,7 +211,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
if (is_dir($deprecatedPath = sprintf('%s/Resources/%s/views', $rootDir, $bundle->getName()))) {
213
213
$viewsPaths[] = $deprecatedPath;
214
-
$notice = sprintf('Storing templates for "%s" in the "%s" directory is deprecated since Symfony 4.2, ', $bundle->getName(), $deprecatedPath);
214
+
$notice = sprintf('Loading Twig templates for "%s" from "%s" directory is deprecated since Symfony 4.2, ', $bundle->getName(), $deprecatedPath);
215
215
@trigger_error($notice.($this->defaultViewsPath ? sprintf('use the "%s" directory instead.', $this->defaultViewsPath) : 'configure and use "twig.default_path" instead.'), E_USER_DEPRECATED);
Copy file name to clipboardExpand all lines: src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -117,7 +117,7 @@ public function load(array $configs, ContainerBuilder $container)
117
117
118
118
if (file_exists($dir = $container->getParameter('kernel.root_dir').'/Resources/views')) {
119
119
if ($dir !== $defaultTwigPath) {
120
-
@trigger_error(sprintf('Templates directory "%s" is deprecated since Symfony 4.2, use "%s" instead.', $dir, $defaultTwigPath), E_USER_DEPRECATED);
120
+
@trigger_error(sprintf('Loading Twig Templates from "%s" directory is deprecated since Symfony 4.2, use "%s" instead.', $dir, $defaultTwigPath), E_USER_DEPRECATED);
if (file_exists($dir = $container->getParameter('kernel.root_dir').'/Resources/'.$name.'/views')) {
175
-
@trigger_error(sprintf('Templates directory "%s" is deprecated since Symfony 4.2, use "%s" instead.', $dir, $defaultOverrideBundlePath), E_USER_DEPRECATED);
175
+
@trigger_error(sprintf('Loading Twig templates for "%s" from "%s" directory is deprecated since Symfony 4.2, use "%s" instead.', $name, $dir, $defaultOverrideBundlePath), E_USER_DEPRECATED);
0 commit comments