Commit c3fbad09 authored by Ivan Enderlin's avatar Ivan Enderlin

Fix `Autoloader` and `Version` classes.

The `Solarium_Autoloader` class is now `Solarium\Autoloader`. The
`Solarium_Version` class does no longer exist and
`Solarium\Client::VERSION` must be used instead.
parent 90d006c6
......@@ -35,18 +35,18 @@
Phar::mapPhar("solarium.phar");
require_once 'phar://solarium.phar/Autoloader.php';
Solarium_Autoloader::register();
Solarium\Autoloader::register();
if ('cli' === php_sapi_name() && basename(__FILE__) === basename($_SERVER['argv'][0]) && isset($_SERVER['argv'][1])) {
switch ($_SERVER['argv'][1]) {
case 'version':
echo "Solarium version " . Solarium_Version::VERSION ."\n";
echo 'Solarium version ' . Solarium\Client::VERSION . "\n";
break;
default:
echo "Unknown command '" . $_SERVER['argv'][1] . "' (Supported commands: version)\n";
echo 'Unknown command \'' . $_SERVER['argv'][1] . '\' (Supported commands: version)' . "\n";
}
exit(0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment