FileAccess Orion

AbstractController
in package
implements ServiceSubscriberInterface Uses ControllerTrait

Provides common features needed in controllers.

Tags
author

Fabien Potencier fabien@symfony.com

Interfaces, Classes, Traits and Enums

ServiceSubscriberInterface
A ServiceSubscriber exposes its dependencies via the static {@link getSubscribedServices} method.

Table of Contents

$container  : ContainerInterface
getSubscribedServices()  : array<string|int, mixed>
Returns an array of service types required by such instances, optionally keyed by the service names used internally.
getParameter()  : mixed
Gets a container parameter by its name.

Properties

Methods

getSubscribedServices()

Returns an array of service types required by such instances, optionally keyed by the service names used internally.

public static getSubscribedServices() : array<string|int, mixed>

For mandatory dependencies:

  • ['logger' => 'Psr\Log\LoggerInterface'] means the objects use the "logger" name internally to fetch a service which must implement Psr\Log\LoggerInterface.
  • ['loggers' => 'Psr\Log\LoggerInterface[]'] means the objects use the "loggers" name internally to fetch an iterable of Psr\Log\LoggerInterface instances.
  • ['Psr\Log\LoggerInterface'] is a shortcut for
  • ['Psr\Log\LoggerInterface' => 'Psr\Log\LoggerInterface']

otherwise:

  • ['logger' => '?Psr\Log\LoggerInterface'] denotes an optional dependency
  • ['loggers' => '?Psr\Log\LoggerInterface[]'] denotes an optional iterable dependency
  • ['?Psr\Log\LoggerInterface'] is a shortcut for
  • ['Psr\Log\LoggerInterface' => '?Psr\Log\LoggerInterface']
Return values
array<string|int, mixed>

The required service types, optionally keyed by service names

getParameter()

Gets a container parameter by its name.

protected getParameter(string $name) : mixed
Parameters
$name : string
Tags
final
Return values
mixed

Search results