4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\HttpKernel\DependencyInjection;
14 use Symfony\Component\DependencyInjection\Extension\Extension as BaseExtension;
17 * Allow adding classes to the class cache.
19 * @author Fabien Potencier <fabien@symfony.com>
21 abstract class Extension extends BaseExtension
23 private $classes = array();
26 * Gets the classes to cache.
28 * @return array An array of classes
30 public function getClassesToCompile()
32 return $this->classes;
36 * Adds classes to the class cache.
38 * @param array $classes An array of classes
40 public function addClassesToCompile(array $classes)
42 $this->classes = array_merge($this->classes, $classes);