Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions src/AuthenticationPlugin.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?php
declare(strict_types=1);

/**
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
* @link https://cakephp.org CakePHP(tm) Project
* @since 1.0.2
* @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Authentication;

use Cake\Core\BasePlugin;

/**
* Plugin class for CakePHP.
*/
class AuthenticationPlugin extends BasePlugin
{
/**
* Do bootstrapping or not
*
* @var bool
*/
protected bool $bootstrapEnabled = false;

/**
* Load routes or not
*
* @var bool
*/
protected bool $routesEnabled = false;

/**
* Console middleware
*
* @var bool
*/
protected bool $consoleEnabled = false;
}
26 changes: 2 additions & 24 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,9 @@
*/
namespace Authentication;

use Cake\Core\BasePlugin;

/**
* Plugin class for CakePHP.
* @deprecated 3.3.4 Use AuthenticationPlugin instead
*/
class Plugin extends BasePlugin
class Plugin extends AuthenticationPlugin
{
/**
* Do bootstrapping or not
*
* @var bool
*/
protected bool $bootstrapEnabled = false;

/**
* Load routes or not
*
* @var bool
*/
protected bool $routesEnabled = false;

/**
* Console middleware
*
* @var bool
*/
protected bool $consoleEnabled = false;
}
2 changes: 1 addition & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @license https://www.opensource.org/licenses/mit-license.php MIT License
*/

use Authentication\Plugin as AuthenticationPlugin;
use Authentication\AuthenticationPlugin;
use Cake\Cache\Cache;
use Cake\Core\Configure;
use Cake\Core\Plugin;
Expand Down