Merge remote branch 'noelg/session-storage-bug'
* noelg/session-storage-bug: Fixed a bug when the storage service is initialized later by another bundle. In this case, we can't add the storage class to the compiled class as the service does not exists.
This commit is contained in:
commit
9f11ab4177
@ -301,9 +301,14 @@ class FrameworkExtension extends Extension
|
|||||||
|
|
||||||
$this->addClassesToCompile(array(
|
$this->addClassesToCompile(array(
|
||||||
'Symfony\\Component\\HttpFoundation\\SessionStorage\\SessionStorageInterface',
|
'Symfony\\Component\\HttpFoundation\\SessionStorage\\SessionStorageInterface',
|
||||||
$container->findDefinition('session.storage')->getClass(),
|
|
||||||
$container->getDefinition('session')->getClass(),
|
$container->getDefinition('session')->getClass(),
|
||||||
));
|
));
|
||||||
|
|
||||||
|
if ($container->hasDefinition($config['storage_id'])) {
|
||||||
|
$this->addClassesToCompile(array(
|
||||||
|
$container->findDefinition('session.storage')->getClass(),
|
||||||
|
));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user