[HttpFoundation] Forward compatibility tweak to allows direct use of \SessionHandlerInterface

This commit is contained in:
Drak 2012-02-13 11:59:56 +05:45
parent a375c1289e
commit 09b348dda2

View File

@ -13,6 +13,11 @@ namespace Symfony\Component\HttpFoundation\Session\Storage;
use Symfony\Component\HttpFoundation\Session\SessionBagInterface;
// force load forward compatability for PHP 5.4's SessionHandlerInterface if necessary.
if (version_compare(phpversion(), '5.4.0', '<')) {
interface_exists('Symfony\Component\HttpFoundation\Session\Storage\SessionHandlerInterface');
}
/**
* This provides a base class for session attribute storage.
*