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