File tree Expand file tree Collapse file tree 3 files changed +48
-25
lines changed
Expand file tree Collapse file tree 3 files changed +48
-25
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 1515 */
1616namespace 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}
Original file line number Diff line number Diff line change 1414 * @license https://www.opensource.org/licenses/mit-license.php MIT License
1515 */
1616
17- use Authentication \Plugin as AuthenticationPlugin ;
17+ use Authentication \AuthenticationPlugin ;
1818use Cake \Cache \Cache ;
1919use Cake \Core \Configure ;
2020use Cake \Core \Plugin ;
You can’t perform that action at this time.
0 commit comments