mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Removing other uses of Routing.admin as it has been removed from Router.
This commit is contained in:
parent
2fb4d7a98a
commit
120fdd9045
5 changed files with 6 additions and 22 deletions
|
@ -440,7 +440,7 @@ class ViewTask extends BakeTask {
|
|||
$this->out("\tWill read the given controller for methods");
|
||||
$this->out("\tand bake corresponding views.");
|
||||
$this->out("\tUsing the -admin flag will only bake views for actions");
|
||||
$this->out("\tthat begin with Routing.admin.");
|
||||
$this->out("\tthat begin with Routing.prefixes.");
|
||||
$this->out("\tIf var scaffold is found it will bake the CRUD actions");
|
||||
$this->out("\t(index,view,add,edit)");
|
||||
$this->out();
|
||||
|
|
|
@ -69,19 +69,6 @@
|
|||
*/
|
||||
//Configure::write('App.baseUrl', env('SCRIPT_NAME'));
|
||||
|
||||
/**
|
||||
* Uncomment the define below to use CakePHP admin routes.
|
||||
*
|
||||
* The value of the define determines the name of the route
|
||||
* and its associated controller actions:
|
||||
*
|
||||
* 'admin' -> admin_index() and /admin/controller/index
|
||||
* 'superuser' -> superuser_index() and /superuser/controller/index
|
||||
*
|
||||
* [Note Routing.admin is deprecated in 1.3. Use Routing.prefixes instead]
|
||||
*/
|
||||
//Configure::write('Routing.admin', 'admin');
|
||||
|
||||
/**
|
||||
* Uncomment the define below to use CakePHP prefix routes.
|
||||
*
|
||||
|
|
|
@ -168,12 +168,10 @@ class Router {
|
|||
}
|
||||
|
||||
/**
|
||||
* Sets the Routing prefixes. Includes compatibilty for existing Routing.admin
|
||||
* configurations.
|
||||
* Sets the Routing prefixes.
|
||||
*
|
||||
* @return void
|
||||
* @access private
|
||||
* @todo Remove support for Routing.admin in future versions.
|
||||
*/
|
||||
function __setPrefixes() {
|
||||
$routing = Configure::read('Routing');
|
||||
|
|
|
@ -1467,8 +1467,8 @@ class AuthTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
function testLoginActionRedirect() {
|
||||
$admin = Configure::read('Routing.admin');
|
||||
Configure::write('Routing.admin', 'admin');
|
||||
$admin = Configure::read('Routing.prefixes');
|
||||
Configure::write('Routing.prefixes', array('admin'));
|
||||
Router::reload();
|
||||
|
||||
$url = '/admin/auth_test/login';
|
||||
|
@ -1494,7 +1494,7 @@ class AuthTest extends CakeTestCase {
|
|||
|
||||
$this->assertNull($this->Controller->testUrl);
|
||||
|
||||
Configure::write('Routing.admin', $admin);
|
||||
Configure::write('Routing.prefixes', $admin);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -571,7 +571,6 @@ class RouterTest extends CakeTestCase {
|
|||
$expected = '/page/my-page';
|
||||
$this->assertEqual($result, $expected);
|
||||
|
||||
Configure::write('Routing.admin', 'admin');
|
||||
Router::reload();
|
||||
|
||||
Router::setRequestInfo(array(
|
||||
|
@ -980,7 +979,7 @@ class RouterTest extends CakeTestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* Test that Routing.prefixes and Routing.admin are used when a Router instance is created
|
||||
* Test that Routing.prefixes are used when a Router instance is created
|
||||
* or reset
|
||||
*
|
||||
* @return void
|
||||
|
|
Loading…
Add table
Reference in a new issue