8000 Removed deprecations in Templating component by dosten · Pull Request #14150 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fixed test
  • Loading branch information
dosten committed Apr 1, 2015
commit 9c15964c17b6f71081f5cb87402a0d897be1f0f8
8 changes: 1 addition & 7 deletions src/Symfony/Component/Templating/Loader/FilesystemLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,12 @@ public function load(TemplateReferenceInterface $template)
if (is_file($file = strtr($templatePathPattern, $replacements)) && is_readable($file)) {
if (null !== $this->logger) {
$this->logger->debug('Loaded template file.', array('file' => $file));
} elseif (null !== $this->debugger) {
// just for BC, to be removed in 3.0
$this->debugger->log(sprintf('Loaded template file "%s".', $file));
}

return new FileStorage($file);
}

if (null !== $this->logger || null !== $this->debugger) {
if (null !== $this->logger) {
$fileFailures[] = $file;
}
}
Expand All @@ -82,9 +79,6 @@ public function load(TemplateReferenceInterface $template)
foreach ($fileFailures as $file) {
if (null !== $this->logger) {
$this->logger->debug('Failed loading template file.', array('file' => $file));
} elseif (null !== $this->debugger) {
// just for BC, to be removed in 3.0
$this->debugger->log(sprintf('Failed loading template file "%s".', $file));
}
}

Expand Down
0