Skip to content

Commit a4dcde1

Browse files
authored
Handle cakephp 5.3 deprecations (#160)
Updates plugin entrypoint class names across the MixerApi plugin suite to address CakePHP 5.3 deprecation warnings and aligns CI to test newer runtime/framework ranges.
1 parent a5d1a79 commit a4dcde1

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

.github/workflows/pull-request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
php-versions: ['8.1', '8.4']
12+
php-versions: ['8.1', '8.5']
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v2
@@ -124,7 +124,7 @@ jobs:
124124
runs-on: ubuntu-latest
125125
strategy:
126126
matrix:
127-
version: ['~5.0.0', '~5.2']
127+
version: ['~5.0.0', '^5.0']
128128
steps:
129129
- name: Checkout
130130
uses: actions/checkout@v2
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use Cake\Event\EventInterface;
1010
use Cake\Event\EventManager;
1111

12-
class Plugin extends BasePlugin
12+
class BakePlugin extends BasePlugin
1313
{
1414
/**
1515
* @inheritDoc

plugins/collection-view/src/Plugin.php renamed to plugins/collection-view/src/CollectionViewPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Cake\Core\Configure;
88
use Cake\Core\PluginApplicationInterface;
99

10-
class Plugin extends BasePlugin
10+
class CollectionViewPlugin extends BasePlugin
1111
{
1212
/**
1313
* @inheritDoc
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* @experimental
1717
*/
18-
class Plugin extends BasePlugin
18+
class CrudPlugin extends BasePlugin
1919
{
2020
protected ?string $name = 'MixerApi/Crud';
2121

plugins/exception-render/src/Plugin.php renamed to plugins/exception-render/src/ExceptionRenderPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Cake\Core\BasePlugin;
77
use Cake\Core\PluginApplicationInterface;
88

9-
class Plugin extends BasePlugin
9+
class ExceptionRenderPlugin extends BasePlugin
1010
{
1111
/**
1212
* Plugin name.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Cake\Core\BasePlugin;
77
use Cake\Core\PluginApplicationInterface;
88

9-
class Plugin extends BasePlugin
9+
class HalViewPlugin extends BasePlugin
1010
{
1111
/**
1212
* Plugin name.

plugins/json-ld-view/src/Plugin.php renamed to plugins/json-ld-view/src/JsonLdViewPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Cake\Core\Configure;
88
use Cake\Core\PluginApplicationInterface;
99

10-
class Plugin extends BasePlugin
10+
class JsonLdViewPlugin extends BasePlugin
1111
{
1212
/**
1313
* Plugin name.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* Plugin for JwtAuth
1010
*/
11-
class Plugin extends BasePlugin
11+
class JwtAuthPlugin extends BasePlugin
1212
{
1313
/**
1414
* Plugin name.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use MixerApi\Command\InstallCommand;
1212
use MixerApi\Service\InstallerService;
1313

14-
class Plugin extends BasePlugin
14+
class MixerApiPlugin extends BasePlugin
1515
{
1616
/**
1717
* Plugin name.

plugins/mixerapi/tests/TestCase/PluginTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function setUp(): void
1919

2020
public function test_bootstrap(): void
2121
{
22-
$plugin = new \MixerApi\Plugin();
22+
$plugin = new \MixerApi\MixerApiPlugin();
2323
$plugin->bootstrap(new Application(CONFIG));
2424

2525
$plugins = [

0 commit comments

Comments
 (0)