linting and updating
This commit is contained in:
parent
1a99758a0c
commit
7e00f2f8f1
21 changed files with 174 additions and 172 deletions
|
@ -1,15 +1,13 @@
|
|||
<?php declare(strict_types=1);
|
||||
|
||||
use App\Service\WhoAreYou;
|
||||
// config/packages/twig.php
|
||||
use Symfony\Config\TwigConfig;
|
||||
|
||||
use function Symfony\Component\DependencyInjection\Loader\Configurator\service;
|
||||
|
||||
use App\Service\WhoAreYou;
|
||||
|
||||
return static function (TwigConfig $twig): void {
|
||||
$twig
|
||||
->fileNamePattern('*.twig')
|
||||
$twig->fileNamePattern('*.twig')
|
||||
->global('username', service(WhoAreYou::class));
|
||||
|
||||
if ($_SERVER['APP_ENV'] === 'test') {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php declare(strict_types=1);
|
||||
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
use Symfony\Bridge\Twig\AppVariable;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
||||
return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
$services = $containerConfigurator->services();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue