Zend\MVC - Default services

16 important questions on Zend\MVC - Default services

Which three services are configured by Zend\Mvc\Service\ServiceManagerConfig?

SharedEventManager, EventManager, ModuleManager

Which FQCN configures the default services and factories on the ServiceManager?

Zend\Mvc\Service\ServiceListenerFactory

What service types may be configured on the ServiceManager?

1. Invokable services
2. Factories
3. Abstract factories
4. Aliases
5. Initializers
6. Plugin managers
  • Higher grades + faster learning
  • Never study anything twice
  • 100% sure, 100% understanding
Discover Study Smart

What is the purpose of service initializers?

To perform additional tasks after service creation

What is the purpose of service plugin managers?

Manage objects that are of a related type, such as view helpers, controller plugins, controllers, etc.

Which 4 abstract service factories are registered by default in a Zend Application?

1. caches (Zend\Cache\Service\StorageCacheAbstractServiceFactory)
2. db adapters (Zend\Db\Adapter\AdapterAbstractServiceFactory)
3. forms (Zend\Form\FormAbstractServiceFactory)
4. logs (Zend\Log\LoggerAbstractServiceFactory)

Which class is responsible of creating and wiring the view objects and attaching the view listeners?

Zend\Mvc\View\ViewManager

What service is responsible of view template resolving?

ViewResolver (Zend\View\Resolver\ResolverInterface)

What service is responsible of view rendering?

ViewRenderer (Zend\View\Renderer\RendererInterface)

What application config key enables a module class map cache?

module_listener_options => module_map_cache_enabled

What application config key enables a app config cache?

module_listener_options => config_cache_enabled

What key enables/disables module dependency checking?

module_listener_options => check_dependencies

What two configuration keys are there for registering controllers?

controllers => invokables and controllers => factories

What configuration key is used for view helpers?

view_helpers

What configuration key holds the view template directories?

view_manager => template_path_stack

What configuration key holds the view layout template?

view_manager => layout

The question on the page originate from the summary of the following study material:

  • A unique study and practice tool
  • Never study anything twice again
  • Get the grades you hope for
  • 100% sure, 100% understanding
Remember faster, study better. Scientifically proven.
Trustpilot Logo