What classes allow you to cache the mapping from a class to its containing file?
Responda
ApcClassLoader
AppClassLoader
XDebugClassLoader
XcacheClassLoader
Questão 3
Questão
How can you instantiate an ApcClassLoader?
Responda
new ApcClassLoader($loader, sha1(__FILE__));
new ApcClassLoader($loader);
new ApcClassLoader(sha1(__FILE__), $loader);
new ApcClassLoader('../app/cache', $loader);
Questão 4
Questão
Two class loaders can co-exist in the application?
Responda
True
False
Questão 5
Questão
How many classes does the class loader component have?
Responda
Less than 10
About 20
More than 40
Questão 6
Questão
you can define a new file loader in Symfony, if the new loader class :
Responda
is registered in yml as a service with the config.file_loader tag
is registered with the DelagatingLoader
implements the LoaderInterface
extends the abstract FileLoader class
Questão 7
Questão
You should merge all your configuration files into one and use it as cache.
Responda
True
False
Questão 8
Questão
What class in the Config Component helps you manage and check if the generate cache file containing all the configuration is valid and if not regenerate it?
Responda
CacheConfig
ConfigurationCache
ConfigLoaderCache
ConfigCache
Questão 9
Questão
In the context of a TreeBuilder, which of the following are valid node types?
Responda
string
scalar
array
enum
serviceId
integer
boolean
float
parameter
variable
Questão 10
Questão
Which of the following are valid ways to define a scalar node type? (to replace .... below)
$treeBuilder
->children()
.....
->end();
Responda
->node('name', 'scalar')
->scalarNode('name')
->addScalarNode('name')
->nodeName('scalar')
Quer criar seus próprios Quizzesgratuitos com a GoConqr? Saiba mais.