Total Complexity | 1 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
25 | class CpNavController extends Controller |
||
26 | { |
||
27 | // Constants |
||
28 | // ========================================================================= |
||
29 | |||
30 | // Protected Properties |
||
31 | // ========================================================================= |
||
32 | |||
33 | /** |
||
34 | * @var bool|array Allows anonymous access to this controller's actions. |
||
35 | * The actions must be in 'kebab-case' |
||
36 | * @access protected |
||
37 | */ |
||
38 | protected $allowAnonymous = [ |
||
39 | 'resource' |
||
40 | ]; |
||
41 | |||
42 | // Public Methods |
||
43 | // ========================================================================= |
||
44 | |||
45 | /** |
||
46 | * Make webpack async bundle loading work out of published AssetBundles |
||
47 | * |
||
48 | * @param string $resourceType |
||
49 | * @param string $fileName |
||
50 | * |
||
51 | * @return Response |
||
52 | */ |
||
53 | public function actionResource(string $resourceType = '', string $fileName = ''): Response |
||
64 |