Move controllers

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
This commit is contained in:
Dillon-Brown 2021-03-26 09:39:54 +00:00
parent 99041d06d8
commit 0774f73684
4 changed files with 11 additions and 5 deletions

View file

@ -69,8 +69,14 @@ services:
# controllers are imported separately to make sure services can be injected
# as action arguments even if you don't extend any base controller class
App\Controller\:
resource: '../core/backend/Controller/*'
App\Authentication\Controller\:
resource: '../core/backend/Authentication/Controller/*'
tags: [ 'controller.service_arguments' ]
# controllers are imported separately to make sure services can be injected
# as action arguments even if you don't extend any base controller class
App\Engine\Controller\:
resource: '../core/backend/Engine/Controller/*'
tags: [ 'controller.service_arguments' ]
# add more service definitions when explicit configuration is needed

View file

@ -1,3 +1,3 @@
controllers:
resource: ../../core/backend/Controller/
resource: ../../core/backend/**/Controller/*
type: annotation

View file

@ -1,6 +1,6 @@
<?php
namespace App\Controller;
namespace App\Authentication\Controller;
use App\Authentication\LegacyHandler\Authentication;
use Exception;

View file

@ -1,6 +1,6 @@
<?php
namespace App\Controller;
namespace App\Engine\Controller;
use RuntimeException;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;