This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/services.yaml | |
services: | |
# ... | |
App\HandlerCollection: | |
arguments: [!tagged_iterator app.handler, default_priority_method: 'calculateServicePriority'] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/services.yaml | |
services: | |
_instanceof: | |
App\Handler: | |
tags: | |
- { name: 'app.handler', priority: 20 } | |
App\HandlerCollection: | |
arguments: [!tagged_iterator app.handler] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/services.yaml | |
services: | |
App\NewMailer: | |
decorates: App\Mailer | |
decoration_on_invalid: ignore | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/services.yaml | |
services: | |
_instanceof: | |
App\Foo\Rule\RuleInterface: | |
tags: ['app.foo.rule'] | |
_defaults: | |
bind: | |
iterable $rules: !tagged_iterator app.foo.rule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imports: | |
# irá exibir uma erro se 'parameters.yaml' existe mas contém erros de sintaxe | |
- { resource: 'parameters.yaml', ignore_errors: 'not_found' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Kernel extends BaseKernel | |
{ | |
// ... | |
protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void | |
{ | |
// ... | |
$container->setParameter('container.dumper.inline_factories', true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/services.yaml | |
services: | |
# ... | |
_defaults: | |
bind: | |
$projectDir: '%kernel.project_dir%' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// src/Command/SomeCommand.php | |
namespace App\Command; | |
use Symfony\Component\Console\Command\Command; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
class SomeCommand extends Command |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* By default, required field labels are rendered with the "required" class */ | |
.required:after { | |
content: "*"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
old_sound_rabbit_mq: | |
connections: | |
default: | |
host: 'localhost' | |
port: 5672 | |
user: 'guest' | |
password: 'guest' | |
vhost: '/' | |
lazy: false | |
producers: |