function DevelCommands::getContainer

Same name in this branch
  1. 5.x src/Commands/DevelCommands.php \Drupal\devel\Commands\DevelCommands::getContainer()
Same name in other branches
  1. 4.x src/Commands/DevelCommands.php \Drupal\devel\Commands\DevelCommands::getContainer()

Gets the container.

Return value

\Drupal\Component\DependencyInjection\ContainerInterface The container.

1 call to DevelCommands::getContainer()
DevelCommands::services in src/Drush/Commands/DevelCommands.php
Get a list of available container services.

File

src/Drush/Commands/DevelCommands.php, line 80

Class

DevelCommands

Namespace

Drupal\devel\Drush\Commands

Code

public function getContainer() : ContainerInterface {
    return Drush::getContainer()->get('service_container');
}