Skip to content

Commit 846f9b9

Browse files
authored
Merge pull request #750 from cakephp/plugin-class
Rename Plugin to AuthenticationPlugin
2 parents c8fc5cb + ab08bf3 commit 846f9b9

File tree

3 files changed

+48
-25
lines changed

3 files changed

+48
-25
lines changed

src/AuthenticationPlugin.php

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
/**
5+
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
6+
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
7+
*
8+
* Licensed under The MIT License
9+
* Redistributions of files must retain the above copyright notice.
10+
*
11+
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
12+
* @link https://cakephp.org CakePHP(tm) Project
13+
* @since 1.0.2
14+
* @license https://www.opensource.org/licenses/mit-license.php MIT License
15+
*/
16+
namespace Authentication;
17+
18+
use Cake\Core\BasePlugin;
19+
20+
/**
21+
* Plugin class for CakePHP.
22+
*/
23+
class AuthenticationPlugin extends BasePlugin
24+
{
25+
/**
26+
* Do bootstrapping or not
27+
*
28+
* @var bool
29+
*/
30+
protected bool $bootstrapEnabled = false;
31+
32+
/**
33+
* Load routes or not
34+
*
35+
* @var bool
36+
*/
37+
protected bool $routesEnabled = false;
38+
39+
/**
40+
* Console middleware
41+
*
42+
* @var bool
43+
*/
44+
protected bool $consoleEnabled = false;
45+
}

src/Plugin.php

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,9 @@
1515
*/
1616
namespace Authentication;
1717

18-
use Cake\Core\BasePlugin;
19-
2018
/**
21-
* Plugin class for CakePHP.
19+
* @deprecated 3.3.4 Use AuthenticationPlugin instead
2220
*/
23-
class Plugin extends BasePlugin
21+
class Plugin extends AuthenticationPlugin
2422
{
25-
/**
26-
* Do bootstrapping or not
27-
*
28-
* @var bool
29-
*/
30-
protected bool $bootstrapEnabled = false;
31-
32-
/**
33-
* Load routes or not
34-
*
35-
* @var bool
36-
*/
37-
protected bool $routesEnabled = false;
38-
39-
/**
40-
* Console middleware
41-
*
42-
* @var bool
43-
*/
44-
protected bool $consoleEnabled = false;
4523
}

tests/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* @license https://www.opensource.org/licenses/mit-license.php MIT License
1515
*/
1616

17-
use Authentication\Plugin as AuthenticationPlugin;
17+
use Authentication\AuthenticationPlugin;
1818
use Cake\Cache\Cache;
1919
use Cake\Core\Configure;
2020
use Cake\Core\Plugin;

0 commit comments

Comments
 (0)