Verzeichnisstruktur phpBB-3.1.0
- Veröffentlicht
- 27.10.2014
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 |
AddClassesToCachePass.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\HttpKernel\DependencyInjection;
13
14 use Symfony\Component\DependencyInjection\ContainerBuilder;
15 use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
16 use Symfony\Component\HttpKernel\Kernel;
17
18 /**
19 * Sets the classes to compile in the cache for the container.
20 *
21 * @author Fabien Potencier <fabien@symfony.com>
22 */
23 class AddClassesToCachePass implements CompilerPassInterface
24 {
25 private $kernel;
26
27 public function __construct(Kernel $kernel)
28 {
29 $this->kernel = $kernel;
30 }
31
32 /**
33 * {@inheritdoc}
34 */
35 public function process(ContainerBuilder $container)
36 {
37 $classes = array();
38 foreach ($container->getExtensions() as $extension) {
39 if ($extension instanceof Extension) {
40 $classes = array_merge($classes, $extension->getClassesToCompile());
41 }
42 }
43
44 $this->kernel->setClassCache(array_unique($container->getParameterBag()->resolveValue($classes)));
45 }
46 }
47