5 * Contains Drupal\Console\Core\Command\Shared\ContainerAwareCommandTrait.
8 namespace Drupal\Console\Core\Command\Shared;
13 * @package Drupal\Console\Core\Command
15 trait ContainerAwareCommandTrait
22 * @param mixed $container
24 public function setContainer($container)
26 $this->container = $container;
33 public function has($key)
39 return $this->container->has($key);
46 public function get($key)
52 if ($this->has($key)) {
53 return $this->container->get($key);