- trop de trucs d'un coup... je vais faire attention ensuite ^^'
This commit is contained in:
@@ -14,4 +14,8 @@ return [
|
||||
Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::class => ['dev' => true, 'test' => true],
|
||||
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
|
||||
Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true],
|
||||
Symfony\UX\TwigComponent\TwigComponentBundle::class => ['all' => true],
|
||||
Symfony\UX\LiveComponent\LiveComponentBundle::class => ['all' => true],
|
||||
Symfony\UX\StimulusBundle\StimulusBundle::class => ['all' => true],
|
||||
Twig\Extra\TwigExtraBundle\TwigExtraBundle::class => ['all' => true],
|
||||
];
|
||||
|
||||
5
config/packages/twig_component.yaml
Normal file
5
config/packages/twig_component.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
twig_component:
|
||||
anonymous_template_directory: 'components/'
|
||||
defaults:
|
||||
# Namespace & directory for components
|
||||
App\Twig\Components\: 'components/'
|
||||
5
config/routes/ux_live_component.yaml
Normal file
5
config/routes/ux_live_component.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
live_component:
|
||||
resource: '@LiveComponentBundle/config/routes.php'
|
||||
prefix: '/_components'
|
||||
# adjust prefix to add localization to your components
|
||||
#prefix: '/{_locale}/_components'
|
||||
@@ -41,6 +41,10 @@ services:
|
||||
track_redirects: true
|
||||
|
||||
|
||||
App\Service\MangaScraperServiceOld:
|
||||
arguments:
|
||||
$projectDir: '%kernel.project_dir%'
|
||||
|
||||
App\Service\MangaScraperService:
|
||||
arguments:
|
||||
$projectDir: '%kernel.project_dir%'
|
||||
@@ -55,3 +59,15 @@ services:
|
||||
|
||||
App\Controller\MenuController:
|
||||
tags: [ 'controller.service_arguments' ]
|
||||
|
||||
App\Client\MangadexClient:
|
||||
arguments:
|
||||
$httpClient: '@GuzzleHttp\Client'
|
||||
$clientId: '%env(MANGADEX_CLIENT_ID)%'
|
||||
$clientSecret: '%env(MANGADEX_CLIENT_SECRET)%'
|
||||
$username: '%env(MANGADEX_USERNAME)%'
|
||||
$password: '%env(MANGADEX_PASSWORD)%'
|
||||
|
||||
App\Service\MangadexProvider:
|
||||
arguments:
|
||||
$client: '@App\Client\MangadexClient'
|
||||
|
||||
Reference in New Issue
Block a user