Browse Source

update namespaces

antograssiot 11 years ago
parent
commit
629d8245f9

+ 1 - 1
src/Auth/WeakPasswordHasher.php

@@ -16,7 +16,7 @@ namespace Cake\Auth;
 
 use Cake\Auth\AbstractPasswordHasher;
 use Cake\Core\Configure;
-use Cake\Utility\Debugger;
+use Cake\Error\Debugger;
 use Cake\Utility\Security;
 
 /**

+ 2 - 2
src/Controller/Component/FlashComponent.php

@@ -16,7 +16,7 @@ namespace Cake\Controller\Component;
 
 use Cake\Controller\Component;
 use Cake\Controller\ComponentRegistry;
-use Cake\Error\InternalErrorException;
+use Cake\Network\Exception\InternalErrorException;
 use Cake\Utility\Inflector;
 
 /**
@@ -106,7 +106,7 @@ class FlashComponent extends Component {
  * @param string $name Element name to use.
  * @param array $args Parameters to pass when calling `FlashComponent::set()`.
  * @return void
- * @throws \Cake\Error\InternalErrorException If missing the flash message.
+ * @throws \Cake\Network\Exception\InternalErrorException If missing the flash message.
  */
 	public function __call($name, $args) {
 		$options = ['element' => Inflector::underscore($name)];

+ 1 - 1
src/Datasource/RepositoryInterface.php

@@ -52,7 +52,7 @@ interface RepositoryInterface {
  *
  * @param mixed $primaryKey primary key value to find
  * @param array|\ArrayAccess $options options accepted by `Table::find()`
- * @throws \Cake\ORM\Error\RecordNotFoundException if the record with such id
+ * @throws \Cake\ORM\Exception\RecordNotFoundException if the record with such id
  * could not be found
  * @return \Cake\Datasource\EntityInterface
  * @see RepositoryInterface::find()

+ 2 - 2
src/Model/Behavior/TreeBehavior.php

@@ -471,7 +471,7 @@ class TreeBehavior extends Behavior {
  *
  * @param \Cake\ORM\Entity $node The node to move
  * @param int|bool $number How many places to move the node, or true to move to first position
- * @throws \Cake\ORM\Error\RecordNotFoundException When node was not found
+ * @throws \Cake\ORM\Exception\RecordNotFoundException When node was not found
  * @return \Cake\ORM\Entity|bool $node The node after being moved or false on failure
  */
 	public function moveUp(Entity $node, $number = 1) {
@@ -486,7 +486,7 @@ class TreeBehavior extends Behavior {
  *
  * @param \Cake\ORM\Entity $node The node to move
  * @param int|bool $number How many places to move the node, or true to move to first position
- * @throws \Cake\ORM\Error\RecordNotFoundException When node was not found
+ * @throws \Cake\ORM\Exception\RecordNotFoundException When node was not found
  * @return \Cake\ORM\Entity|bool $node The node after being moved or false on failure
  */
 	protected function _moveUp($node, $number) {

+ 1 - 1
tests/TestCase/BasicsTest.php

@@ -19,10 +19,10 @@ namespace Cake\Test\TestCase;
 use Cake\Cache\Cache;
 use Cake\Core\App;
 use Cake\Core\Configure;
+use Cake\Filesystem\Folder;
 use Cake\Log\Log;
 use Cake\Network\Response;
 use Cake\TestSuite\TestCase;
-use Cake\Utility\Folder;
 
 require_once CAKE . 'basics.php';
 

+ 1 - 1
tests/TestCase/Network/Email/EmailTest.php

@@ -17,11 +17,11 @@ namespace Cake\Test\TestCase\Network\Email;
 use Cake\Core\App;
 use Cake\Core\Configure;
 use Cake\Core\Plugin;
+use Cake\Filesystem\File;
 use Cake\Log\Log;
 use Cake\Network\Email\DebugTransport;
 use Cake\Network\Email\Email;
 use Cake\TestSuite\TestCase;
-use Cake\Utility\File;
 use Cake\View\Exception\MissingViewException;
 
 /**

+ 1 - 1
tests/TestCase/Network/RequestTest.php

@@ -2229,7 +2229,7 @@ XML;
 			$this->assertEquals(array('Allow' => 'POST, DELETE'), $e->responseHeader());
 		}
 
-		$this->setExpectedException('Cake\Error\MethodNotAllowedException');
+		$this->setExpectedException('Cake\Network\Exception\MethodNotAllowedException');
 		$request->allowMethod('POST');
 	}