mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
Bootstrap loading of controllers and routes for ticket bundle
This commit is contained in:
parent
18e442db29
commit
4d67702a76
@ -1 +0,0 @@
|
||||
services:
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace Chill\TicketBundle\Controller;
|
||||
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
|
||||
class ViewTicketController
|
||||
{
|
||||
#[Route('/{_locale}/ticket/ticket/{ticketId}', name: 'chill_ticket_ticket_view')]
|
||||
public function __invoke(int $ticketId): Response
|
||||
{
|
||||
return new Response('ok');
|
||||
}
|
||||
}
|
@ -11,7 +11,7 @@ class ChillTicketExtension extends Extension
|
||||
{
|
||||
public function load(array $configs, ContainerBuilder $container)
|
||||
{
|
||||
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../../config'));
|
||||
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../config'));
|
||||
$loader->load('services.yaml');
|
||||
}
|
||||
}
|
||||
|
12
src/Bundle/ChillTicketBundle/src/config/services.yaml
Normal file
12
src/Bundle/ChillTicketBundle/src/config/services.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
services:
|
||||
_defaults:
|
||||
autoconfigure: true
|
||||
autowire: true
|
||||
|
||||
Chill\TicketBundle\Controller\:
|
||||
resource: '../Controller/'
|
||||
tags:
|
||||
- controller.service_arguments
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user