Browse Source

Move Asset class from View to Routing.

ADmad 6 years ago
parent
commit
0c128ce5cf
2 changed files with 3 additions and 4 deletions
  1. 1 2
      src/View/Asset.php
  2. 2 2
      tests/TestCase/View/AssetTest.php

+ 1 - 2
src/View/Asset.php

@@ -14,12 +14,11 @@ declare(strict_types=1);
  * @since         4.0.0
  * @license       https://opensource.org/licenses/mit-license.php MIT License
  */
-namespace Cake\View;
+namespace Cake\Routing;
 
 use Cake\Core\Configure;
 use Cake\Core\Exception\Exception;
 use Cake\Core\Plugin;
-use Cake\Routing\Router;
 use Cake\Utility\Inflector;
 
 /**

+ 2 - 2
tests/TestCase/View/AssetTest.php

@@ -14,13 +14,13 @@ declare(strict_types=1);
  * @since         4.0.0
  * @license       https://opensource.org/licenses/mit-license.php MIT License
  */
-namespace Cake\Test\TestCase\View;
+namespace Cake\Test\TestCase\Routing;
 
 use Cake\Core\Configure;
 use Cake\Http\ServerRequest;
+use Cake\Routing\Asset;
 use Cake\Routing\Router;
 use Cake\TestSuite\TestCase;
-use Cake\View\Asset;
 
 /**
  * AssetTest class