Skip to content

Commit 7170629

Browse files
committed
refactor: Plugin class to SearchFilterPlugin and update deprecation warnings
1 parent 104e5ff commit 7170629

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

src/Plugin.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace CakeDC\SearchFilter;
6+
7+
/**
8+
* @deprecated 5.3.0 This class will be removed in a future version of CakePHP
9+
* Use \CakeDC\SearchFilter\SearchFilterPlugin instead.
10+
*/
11+
class Plugin extends SearchFilterPlugin
12+
{
13+
/**
14+
* @param array $config Plugin configuration.
15+
*/
16+
public function __construct(array $config = [])
17+
{
18+
deprecationWarning(
19+
'5.3.0',
20+
'The `Plugin` class is deprecated. Use `\CakeDC\SearchFilter\SearchFilterPlugin` instead ' .
21+
'to comply with CakePHP 5.3+ naming conventions.'
22+
);
23+
parent::__construct($config);
24+
}
25+
}

0 commit comments

Comments
 (0)