Permalink
Browse files

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

  • Loading branch information...
1 parent f01f209 commit 429c5298f33e95097f2ffc5d080898f5e9c73f14 @fabpot fabpot committed Feb 8, 2013
Showing with 4 additions and 5 deletions.
  1. +3 −4 Client.php
  2. +1 −1 Tests/ClientTest.php
View
@@ -79,18 +79,17 @@ 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
<?php
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
@@ -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');
}

0 comments on commit 429c529

Please sign in to comment.