5 * Contains Drupal\Console\Core\Command\Shared\ContainerAwareCommandTrait.
8 namespace Drupal\Console\Core\Command\Shared;
12 * @package Drupal\Console\Core\Command
14 trait ContainerAwareCommandTrait
21 * @param mixed $container
23 public function setContainer($container)
25 $this->container = $container;
32 public function has($key)
38 return $this->container->has($key);
45 public function get($key)
51 if ($this->has($key)) {
52 return $this->container->get($key);