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