Skip to content

Commit

Permalink
Update autoloader for PHP 5.4 forward compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
Drak committed Feb 21, 2012
1 parent 5794e25 commit bfec438
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@
if (!function_exists('intl_get_error_code')) {
require_once __DIR__.'/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php';

$loader->registerPrefixFallbacks(array(__DIR__.'/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs'));
$loader->registerPrefixFallback(__DIR__.'/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs');
}
if (!interface_exists('SessionHandlerInterface', false)) {
$loader->registerPrefix('SessionHandlerInterface', __DIR__.'/../vendor/symfony/src/Symfony/Component/HttpFoundation/Resources/stubs');
}
$loader->register();

$loader->registerNamespaceFallbacks(array(
__DIR__.'/../src',
Expand Down

0 comments on commit bfec438

Please sign in to comment.