Skip to content

Commit

Permalink
Update composer for HttpFoundation's PHP 5.4 forward compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
Drak committed Feb 22, 2012
1 parent ff8d740 commit 2871ea0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion autoload.php.dist
Expand Up @@ -23,7 +23,7 @@ if (!function_exists('intl_get_error_code')) {
$loader->registerPrefixFallback(__DIR__.'/src/Symfony/Component/Locale/Resources/stubs');
}
if (!interface_exists('SessionHandlerInterface', false)) {
$loader->registerPrefixFallback(__DIR__.'/src/Symfony/Component/HttpFoundation/Resources/stubs');
$loader->registerPrefix('SessionHandlerInterface', __DIR__.'/src/Symfony/Component/HttpFoundation/Resources/stubs');
}
$loader->register();

Expand Down
5 changes: 4 additions & 1 deletion composer.json
Expand Up @@ -56,6 +56,9 @@
"doctrine/data-fixtures": "1.0.*"
},
"autoload": {
"psr-0": { "Symfony": "src/" }
"psr-0": {
"Symfony": "src/",
"SessionHandlerInterface": "src/Symfony/Component/HttpFoundation/Resources/stub"
}
}
}
5 changes: 4 additions & 1 deletion src/Symfony/Component/HttpFoundation/composer.json
Expand Up @@ -20,7 +20,10 @@
"php": ">=5.3.2"
},
"autoload": {
"psr-0": { "Symfony\\Component\\HttpFoundation": "" }
"psr-0": {
"Symfony\\Component\\HttpFoundation": "",
"SessionHandlerInterface": "Symfony/Component/HttpFoundation/Resources/stub"
}
},
"target-dir": "Symfony/Component/HttpFoundation"
}

0 comments on commit 2871ea0

Please sign in to comment.