From 52142ee9d84a3101b8ee89283a87c2be84178905 Mon Sep 17 00:00:00 2001 From: Jasper Smet Date: Sun, 14 Dec 2025 15:34:08 +0100 Subject: [PATCH 1/3] Rename Plugin to QueuePlugin --- src/{Plugin.php => QueuePlugin.php} | 2 +- tests/TestCase/PluginTest.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) rename src/{Plugin.php => QueuePlugin.php} (98%) diff --git a/src/Plugin.php b/src/QueuePlugin.php similarity index 98% rename from src/Plugin.php rename to src/QueuePlugin.php index 92cb0de..2dc6010 100644 --- a/src/Plugin.php +++ b/src/QueuePlugin.php @@ -31,7 +31,7 @@ /** * Plugin for Queue */ -class Plugin extends BasePlugin +class QueuePlugin extends BasePlugin { /** * Plugin name. diff --git a/tests/TestCase/PluginTest.php b/tests/TestCase/PluginTest.php index c48e060..d695069 100644 --- a/tests/TestCase/PluginTest.php +++ b/tests/TestCase/PluginTest.php @@ -4,8 +4,8 @@ namespace Cake\Queue\Test\TestCase; use Cake\Core\Configure; -use Cake\Queue\Plugin; use Cake\Queue\QueueManager; +use Cake\Queue\QueuePlugin; use Cake\TestSuite\TestCase; use InvalidArgumentException; use TestApp\Application; @@ -22,7 +22,7 @@ public function testBootstrapNoConfig() $this->expectException(InvalidArgumentException::class); $this->expectExceptionMessage('Missing `Queue` configuration key, please check the CakePHP Queue documentation to complete the plugin setup'); Configure::delete('Queue'); - $plugin = new Plugin(); + $plugin = new QueuePlugin(); $app = $this->getMockBuilder(Application::class)->disableOriginalConstructor()->getMock(); $plugin->bootstrap($app); } @@ -40,7 +40,7 @@ public function testBootstrapWithConfig() 'logger' => 'stdout', ]; Configure::write('Queue', ['default' => $queueConfig]); - $plugin = new Plugin(); + $plugin = new QueuePlugin(); $app = $this->getMockBuilder(Application::class)->disableOriginalConstructor()->getMock(); $plugin->bootstrap($app); $queueConfig['url'] = [ From 09fd0a4a85d4ac7107bad8b100c09e92ccad196d Mon Sep 17 00:00:00 2001 From: Jasper Smet Date: Sun, 14 Dec 2025 16:00:17 +0100 Subject: [PATCH 2/3] Retain and deprecate Queue.php --- src/Plugin.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/Plugin.php diff --git a/src/Plugin.php b/src/Plugin.php new file mode 100644 index 0000000..65812ab --- /dev/null +++ b/src/Plugin.php @@ -0,0 +1,24 @@ + Date: Sun, 14 Dec 2025 16:15:01 +0100 Subject: [PATCH 3/3] Adjust @since on new plugin class --- src/QueuePlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/QueuePlugin.php b/src/QueuePlugin.php index 2dc6010..9f7202b 100644 --- a/src/QueuePlugin.php +++ b/src/QueuePlugin.php @@ -11,7 +11,7 @@ * * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org/) * @link https://cakephp.org CakePHP(tm) Project - * @since 0.1.0 + * @since 2.2.1 * @license https://opensource.org/licenses/MIT MIT License */ namespace Cake\Queue;