Verzeichnisstruktur phpBB-3.2.0
- Veröffentlicht
- 06.01.2017
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
LoggingFormatter.php
01 <?php
02
03 /*
04 * This file is part of the Symfony package.
05 *
06 * (c) Fabien Potencier <fabien@symfony.com>
07 *
08 * For the full copyright and license information, please view the LICENSE
09 * file that was distributed with this source code.
10 */
11
12 namespace Symfony\Component\DependencyInjection\Compiler;
13
14 /**
15 * Used to format logging messages during the compilation.
16 *
17 * @author Johannes M. Schmitt <schmittjoh@gmail.com>
18 */
19 class LoggingFormatter
20 {
21 public function formatRemoveService(CompilerPassInterface $pass, $id, $reason)
22 {
23 return $this->format($pass, sprintf('Removed service "%s"; reason: %s.', $id, $reason));
24 }
25
26 public function formatInlineService(CompilerPassInterface $pass, $id, $target)
27 {
28 return $this->format($pass, sprintf('Inlined service "%s" to "%s".', $id, $target));
29 }
30
31 public function formatUpdateReference(CompilerPassInterface $pass, $serviceId, $oldDestId, $newDestId)
32 {
33 return $this->format($pass, sprintf('Changed reference of service "%s" previously pointing to "%s" to "%s".', $serviceId, $oldDestId, $newDestId));
34 }
35
36 public function formatResolveInheritance(CompilerPassInterface $pass, $childId, $parentId)
37 {
38 return $this->format($pass, sprintf('Resolving inheritance for "%s" (parent: %s).', $childId, $parentId));
39 }
40
41 public function format(CompilerPassInterface $pass, $message)
42 {
43 return sprintf('%s: %s', get_class($pass), $message);
44 }
45 }
46