CommonComponentTestController.php 488 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace TestApp\Controller;
  3. use Tools\Controller\Controller;
  4. /**
  5. * Use Controller instead of AppController to avoid conflicts
  6. *
  7. * @property \Tools\Controller\Component\CommonComponent $Common
  8. */
  9. class CommonComponentTestController extends Controller {
  10. /**
  11. * @var array<string>
  12. */
  13. public array $autoRedirectActions = ['allowed'];
  14. /**
  15. * @return void
  16. */
  17. public function initialize(): void {
  18. parent::initialize();
  19. $this->loadComponent('Tools.Common');
  20. }
  21. }