[ Index ]

PHP Cross Reference of phpBB-3.1.12-deutsch

title

Body

[close]

/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/DependencyInjection/ -> Extension.php (source)

   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  
  12  namespace Symfony\Component\HttpKernel\DependencyInjection;
  13  
  14  use Symfony\Component\DependencyInjection\Extension\Extension as BaseExtension;
  15  
  16  /**
  17   * Allow adding classes to the class cache.
  18   *
  19   * @author Fabien Potencier <fabien@symfony.com>
  20   */
  21  abstract class Extension extends BaseExtension
  22  {
  23      private $classes = array();
  24  
  25      /**
  26       * Gets the classes to cache.
  27       *
  28       * @return array An array of classes
  29       */
  30      public function getClassesToCompile()
  31      {
  32          return $this->classes;
  33      }
  34  
  35      /**
  36       * Adds classes to the class cache.
  37       *
  38       * @param array $classes An array of classes
  39       */
  40      public function addClassesToCompile(array $classes)
  41      {
  42          $this->classes = array_merge($this->classes, $classes);
  43      }
  44  }


Generated: Thu Jan 11 00:25:41 2018 Cross-referenced by PHPXref 0.7.1