Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added Universal* classes in the list of deprecated classes for 3.0

  • Loading branch information...
commit 429c5298f33e95097f2ffc5d080898f5e9c73f14 1 parent f01f209
@fabpot fabpot authored
Showing with 4 additions and 5 deletions.
  1. +3 −4 Client.php
  2. +1 −1  Tests/ClientTest.php
View
7 Client.php
@@ -79,9 +79,8 @@ protected function getScript($request)
$kernel = str_replace("'", "\\'", serialize($this->kernel));
$request = str_replace("'", "\\'", serialize($request));
- $r = new \ReflectionClass('\\Symfony\\Component\\ClassLoader\\UniversalClassLoader');
+ $r = new \ReflectionClass('\\Symfony\\Component\\ClassLoader\\ClassLoader');
$requirePath = str_replace("'", "\\'", $r->getFileName());
-
$symfonyPath = str_replace("'", "\\'", realpath(__DIR__.'/../../..'));
return <<<EOF
@@ -89,8 +88,8 @@ protected function getScript($request)
require_once '$requirePath';
-\$loader = new Symfony\Component\ClassLoader\UniversalClassLoader();
-\$loader->registerNamespaces(array('Symfony' => '$symfonyPath'));
+\$loader = new Symfony\Component\ClassLoader\ClassLoader();
+\$loader->addPrefix('Symfony', '$symfonyPath');
\$loader->register();
\$kernel = unserialize('$kernel');
View
2  Tests/ClientTest.php
@@ -50,7 +50,7 @@ public function testGetScript()
$this->markTestSkipped('The "Process" component is not available');
}
- if (!class_exists('Symfony\Component\ClassLoader\UniversalClassLoader')) {
+ if (!class_exists('Symfony\Component\ClassLoader\ClassLoader')) {
$this->markTestSkipped('The "ClassLoader" component is not available');
}
Please sign in to comment.
Something went wrong with that request. Please try again.