File tree Expand file tree Collapse file tree 2 files changed +4
-17
lines changed Expand file tree Collapse file tree 2 files changed +4
-17
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " infrangible/m2-cache-usage" ,
3
3
"description" : " Infrangible Magento 2 Cache Usage" ,
4
4
"type" : " magento2-module" ,
5
- "version" : " 2.4.1 " ,
5
+ "version" : " 2.4.2 " ,
6
6
"license" : " MIT" ,
7
7
"keywords" : [
8
8
" Magento"
Original file line number Diff line number Diff line change 4
4
5
5
namespace Infrangible \CacheUsage \Plugin \Framework \App ;
6
6
7
- use Magento \ Framework \ App \ ActionInterface ;
7
+ use Infrangible \ CacheUsage \ Model \ Cache ;
8
8
use Magento \Framework \App \Request \Http ;
9
9
use Magento \Framework \App \Router \Base ;
10
- use Infrangible \CacheUsage \Model \Cache ;
11
10
12
11
/**
13
12
* @author Andreas Knollmann
14
- * @copyright 2014-2024 Softwareentwicklung Andreas Knollmann
13
+ * @copyright 2014-2025 Softwareentwicklung Andreas Knollmann
15
14
* @license http://www.opensource.org/licenses/mit-license.php MIT
16
15
*/
17
16
class RouterInterface
@@ -22,25 +21,13 @@ class RouterInterface
22
21
/** @var Http */
23
22
protected $ request ;
24
23
25
- /**
26
- * @param Cache $cache
27
- * @param Http $request
28
- */
29
24
public function __construct (Cache $ cache , Http $ request )
30
25
{
31
26
$ this ->cache = $ cache ;
32
27
$ this ->request = $ request ;
33
28
}
34
29
35
- /**
36
- * @param \Magento\Framework\App\RouterInterface $subject
37
- * @param ActionInterface|null $matched
38
- *
39
- * @return ActionInterface|null
40
- */
41
- public function afterMatch (
42
- \Magento \Framework \App \RouterInterface $ subject ,
43
- ?ActionInterface $ matched ): ?ActionInterface
30
+ public function afterMatch (\Magento \Framework \App \RouterInterface $ subject , $ matched )
44
31
{
45
32
if ($ matched && $ subject instanceof Base) {
46
33
$ this ->cache ->setRouteName ($ this ->request ->getRouteName ());
You can’t perform that action at this time.
0 commit comments