AddAnnotatedClassesToCachePass.php
1 year ago
ConfigurableExtension.php
2 years ago
ControllerArgumentValueResolverPass.php
2 years ago
Extension.php
2 years ago
FragmentRendererPass.php
1 year ago
LazyLoadingFragmentHandler.php
1 year ago
LoggerPass.php
1 year ago
MergeExtensionConfigurationPass.php
2 years ago
RegisterControllerArgumentLocatorsPass.php
1 year ago
RegisterLocaleAwareServicesPass.php
2 years ago
RemoveEmptyControllerArgumentLocatorsPass.php
1 year ago
ResettableServicePass.php
1 year ago
ServicesResetter.php
2 years ago
Extension.php
41 lines
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the Symfony package. |
| 5 | * |
| 6 | * (c) Fabien Potencier <fabien@symfony.com> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | namespace Matomo\Dependencies\Symfony\Component\HttpKernel\DependencyInjection; |
| 12 | |
| 13 | use Symfony\Component\DependencyInjection\Extension\Extension as BaseExtension; |
| 14 | /** |
| 15 | * Allow adding classes to the class cache. |
| 16 | * |
| 17 | * @author Fabien Potencier <fabien@symfony.com> |
| 18 | */ |
| 19 | abstract class Extension extends BaseExtension |
| 20 | { |
| 21 | private $annotatedClasses = []; |
| 22 | /** |
| 23 | * Gets the annotated classes to cache. |
| 24 | * |
| 25 | * @return array |
| 26 | */ |
| 27 | public function getAnnotatedClassesToCompile() |
| 28 | { |
| 29 | return $this->annotatedClasses; |
| 30 | } |
| 31 | /** |
| 32 | * Adds annotated classes to the class cache. |
| 33 | * |
| 34 | * @param array $annotatedClasses An array of class patterns |
| 35 | */ |
| 36 | public function addAnnotatedClassesToCompile(array $annotatedClasses) |
| 37 | { |
| 38 | $this->annotatedClasses = array_merge($this->annotatedClasses, $annotatedClasses); |
| 39 | } |
| 40 | } |
| 41 |