use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Dumper\PhpDumper;
-use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
use Symfony\Component\DependencyInjection\Loader\IniFileLoader;
protected $startTime;
protected $loadClassCache;
- const VERSION = '2.8.22';
- const VERSION_ID = 20822;
- const MAJOR_VERSION = 2;
- const MINOR_VERSION = 8;
- const RELEASE_VERSION = 22;
+ const VERSION = '3.2.13';
+ const VERSION_ID = 30213;
+ const MAJOR_VERSION = 3;
+ const MINOR_VERSION = 2;
+ const RELEASE_VERSION = 13;
const EXTRA_VERSION = '';
- const END_OF_MAINTENANCE = '11/2018';
- const END_OF_LIFE = '11/2019';
+ const END_OF_MAINTENANCE = '07/2017';
+ const END_OF_LIFE = '01/2018';
/**
* Constructor.
if ($this->debug) {
$this->startTime = microtime(true);
}
-
- $defClass = new \ReflectionMethod($this, 'init');
- $defClass = $defClass->getDeclaringClass()->name;
-
- if (__CLASS__ !== $defClass) {
- @trigger_error(sprintf('Calling the %s::init() method is deprecated since version 2.3 and will be removed in 3.0. Move your logic to the constructor method instead.', $defClass), E_USER_DEPRECATED);
- $this->init();
- }
- }
-
- /**
- * @deprecated since version 2.3, to be removed in 3.0. Move your logic in the constructor instead.
- */
- public function init()
- {
- @trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Move your logic to the constructor method instead.', E_USER_DEPRECATED);
}
public function __clone()
return $this->bundles;
}
- /**
- * {@inheritdoc}
- *
- * @deprecated since version 2.6, to be removed in 3.0.
- */
- public function isClassInActiveBundle($class)
- {
- @trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in version 3.0.', E_USER_DEPRECATED);
-
- foreach ($this->getBundles() as $bundle) {
- if (0 === strpos($class, $bundle->getNamespace())) {
- return true;
- }
- }
-
- return false;
- }
-
/**
* {@inheritdoc}
*/
}
/**
- * Used internally.
+ * @internal
*/
public function setClassCache(array $classes)
{
file_put_contents($this->getCacheDir().'/classes.map', sprintf('<?php return %s;', var_export($classes, true)));
}
+ /**
+ * @internal
+ */
+ public function setAnnotatedClassCache(array $annotatedClasses)
+ {
+ file_put_contents($this->getCacheDir().'/annotations.map', sprintf('<?php return %s;', var_export($annotatedClasses, true)));
+ }
+
/**
* {@inheritdoc}
*/
*/
protected function getContainerBuilder()
{
- $container = new ContainerBuilder(new ParameterBag($this->getKernelParameters()));
+ $container = new ContainerBuilder();
+ $container->getParameterBag()->add($this->getKernelParameters());
if (class_exists('ProxyManager\Configuration') && class_exists('Symfony\Bridge\ProxyManager\LazyProxy\Instantiator\RuntimeInstantiator')) {
$container->setProxyInstantiator(new RuntimeInstantiator());