DIC tags Flashcards

1
Q

auto_alias

A

Define aliases based on the value of container parameters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

console.command

A

Add a command to the application

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

container.hot_path

A

Add to list of always needed services

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

container.no_preload

A

Remove a class from the list of classes preloaded by PHP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

container.preload

A

Add some class to the list of classes preloaded by PHP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

controller.argument_value_resolver

A

Register a value resolver for controller arguments such as Request

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

data_collector

A

Create a class that collects custom data for the profiler

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

doctrine.event_listener

A

Add a Doctrine event listener

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

doctrine.event_subscriber

A

Add a Doctrine event subscriber

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

form.type

A

Create a custom form field type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

form.type_extension

A

Create a custom “form extension”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

form.type_guesser

A

Add your own logic for “form type guessing”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

kernel.cache_clearer

A

Register your service to be called during the cache clearing process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

kernel.cache_warmer

A

Register your service to be called during the cache warming process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

kernel.event_listener

A

To listen to different events/hooks in Symfony

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

kernel.event_subscriber

A

To subscribe to a set of different events/hooks in Symfony

17
Q

kernel.fragment_renderer

A

Add a new HTTP content rendering strategy

18
Q

kernel.reset

A

Clean up services between requests

19
Q

mime.mime_type_guesser

A

Add your own logic for guessing MIME types

20
Q

monolog.logger

A

To use a custom logging channel with Monolog

21
Q

monolog.processor

A

Add a custom processor for logging

22
Q

routing.loader

A

Register a custom service that loads routes

23
Q

routing.expression_language_provider

A

Register a provider for expression language functions in routing

24
Q

security.expression_language_provider

A

Register a provider for expression language functions in security

25
Q

security.remember_me_aware

A

To allow remember me authentication

26
Q

security.voter

A

To add a custom voter to Symfony’s authorization logic

27
Q

serializer.encoder

A

Register a new encoder in the serializer service

28
Q

serializer.normalizer

A

Register a new normalizer in the Serializer service

29
Q

swiftmailer.default.plugin

A

Register a custom SwiftMailer Plugin

30
Q

translation.loader

A

To register a custom service that loads translations

31
Q

translation.extractor

A

To register a custom service that extracts messages from a file

32
Q

translation.dumper

A

To register a custom service that dumps messages to a file

33
Q

twig.extension

A

To register a custom Twig Extension

34
Q

twig.loader

A

Register a custom service that loads Twig templates

35
Q

twig.runtime

A

To register a custom Lazy-Loaded Twig Extension

36
Q

validator.constraint_validator

A

Create your own custom validation constraint

37
Q

validator.initializer

A

Register a service that initializes objects before validation