class SystemInfoController implements ContainerInjectionInterface (View source)

Returns responses for System Info routes.

Properties

protected SystemManager $systemManager

System Manager Service.

Methods

static 
create(ContainerInterface $container)

Instantiates a new instance of this class.

__construct(SystemManager $systemManager)

Constructs a SystemInfoController object.

array
status()

Displays the site status report.

Response
php()

Returns the contents of phpinfo().

Details

static create(ContainerInterface $container)

Instantiates a new instance of this class.

This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton.

Parameters

ContainerInterface $container

The service container this instance should use.

__construct(SystemManager $systemManager)

Constructs a SystemInfoController object.

Parameters

SystemManager $systemManager

System manager service.

array status()

Displays the site status report.

Return Value

array

A render array containing a list of system requirements for the Drupal installation and whether this installation meets the requirements.

Response php()

Returns the contents of phpinfo().

Return Value

Response

A response object to be sent to the client.