You are here

class ListCommand in Devel 8.3

Same name in this branch
  1. 8.3 webprofiler/src/Command/ListCommand.php \Drupal\webprofiler\Command\ListCommand
  2. 8.3 webprofiler/src/ProxyClass/Command/ListCommand.php \Drupal\webprofiler\ProxyClass\Command\ListCommand
Same name and namespace in other branches
  1. 8 webprofiler/src/ProxyClass/Command/ListCommand.php \Drupal\webprofiler\ProxyClass\Command\ListCommand
  2. 8.2 webprofiler/src/ProxyClass/Command/ListCommand.php \Drupal\webprofiler\ProxyClass\Command\ListCommand
  3. 4.x webprofiler/src/ProxyClass/Command/ListCommand.php \Drupal\webprofiler\ProxyClass\Command\ListCommand

Provides a proxy class for \Drupal\webprofiler\Command\ListCommand.

Hierarchy

Expanded class hierarchy of ListCommand

See also

\Drupal\Component\ProxyBuilder

File

webprofiler/src/ProxyClass/Command/ListCommand.php, line 17

Namespace

Drupal\webprofiler\ProxyClass\Command
View source
class ListCommand {
  use \Drupal\Core\DependencyInjection\DependencySerializationTrait;

  /**
   * The id of the original proxied service.
   *
   * @var string
   */
  protected $drupalProxyOriginalServiceId;

  /**
   * The real proxied service, after it was lazy loaded.
   *
   * @var \Drupal\webprofiler\Command\ListCommand
   */
  protected $service;

  /**
   * The service container.
   *
   * @var \Symfony\Component\DependencyInjection\ContainerInterface
   */
  protected $container;

  /**
   * Constructs a ProxyClass Drupal proxy object.
   *
   * @param \Symfony\Component\DependencyInjection\ContainerInterface $container
   *   The container.
   * @param string $drupal_proxy_original_service_id
   *   The service ID of the original service.
   */
  public function __construct(\Symfony\Component\DependencyInjection\ContainerInterface $container, $drupal_proxy_original_service_id) {
    $this->container = $container;
    $this->drupalProxyOriginalServiceId = $drupal_proxy_original_service_id;
  }

  /**
   * Lazy loads the real service from the container.
   *
   * @return object
   *   Returns the constructed real service.
   */
  protected function lazyLoadItself() {
    if (!isset($this->service)) {
      $this->service = $this->container
        ->get($this->drupalProxyOriginalServiceId);
    }
    return $this->service;
  }

  /**
   * {@inheritdoc}
   */
  public function showMessage($output, $message, $type = 'info') {
    return $this
      ->lazyLoadItself()
      ->showMessage($output, $message, $type);
  }

  /**
   * {@inheritdoc}
   */
  public function ignoreValidationErrors() {
    return $this
      ->lazyLoadItself()
      ->ignoreValidationErrors();
  }

  /**
   * {@inheritdoc}
   */
  public function setApplication(\Symfony\Component\Console\Application $application = NULL) {
    return $this
      ->lazyLoadItself()
      ->setApplication($application);
  }

  /**
   * {@inheritdoc}
   */
  public function setHelperSet(\Symfony\Component\Console\Helper\HelperSet $helperSet) {
    return $this
      ->lazyLoadItself()
      ->setHelperSet($helperSet);
  }

  /**
   * {@inheritdoc}
   */
  public function getHelperSet() {
    return $this
      ->lazyLoadItself()
      ->getHelperSet();
  }

  /**
   * {@inheritdoc}
   */
  public function getApplication() {
    return $this
      ->lazyLoadItself()
      ->getApplication();
  }

  /**
   * {@inheritdoc}
   */
  public function isEnabled() {
    return $this
      ->lazyLoadItself()
      ->isEnabled();
  }

  /**
   * {@inheritdoc}
   */
  public function run(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output) {
    return $this
      ->lazyLoadItself()
      ->run($input, $output);
  }

  /**
   * {@inheritdoc}
   */
  public function setCode(callable $code) {
    return $this
      ->lazyLoadItself()
      ->setCode($code);
  }

  /**
   * {@inheritdoc}
   */
  public function mergeApplicationDefinition($mergeArgs = TRUE) {
    return $this
      ->lazyLoadItself()
      ->mergeApplicationDefinition($mergeArgs);
  }

  /**
   * {@inheritdoc}
   */
  public function setDefinition($definition) {
    return $this
      ->lazyLoadItself()
      ->setDefinition($definition);
  }

  /**
   * {@inheritdoc}
   */
  public function getDefinition() {
    return $this
      ->lazyLoadItself()
      ->getDefinition();
  }

  /**
   * {@inheritdoc}
   */
  public function getNativeDefinition() {
    return $this
      ->lazyLoadItself()
      ->getNativeDefinition();
  }

  /**
   * {@inheritdoc}
   */
  public function addArgument($name, $mode = NULL, $description = '', $default = NULL) {
    return $this
      ->lazyLoadItself()
      ->addArgument($name, $mode, $description, $default);
  }

  /**
   * {@inheritdoc}
   */
  public function addOption($name, $shortcut = NULL, $mode = NULL, $description = '', $default = NULL) {
    return $this
      ->lazyLoadItself()
      ->addOption($name, $shortcut, $mode, $description, $default);
  }

  /**
   * {@inheritdoc}
   */
  public function setName($name) {
    return $this
      ->lazyLoadItself()
      ->setName($name);
  }

  /**
   * {@inheritdoc}
   */
  public function setProcessTitle($title) {
    return $this
      ->lazyLoadItself()
      ->setProcessTitle($title);
  }

  /**
   * {@inheritdoc}
   */
  public function getName() {
    return $this
      ->lazyLoadItself()
      ->getName();
  }

  /**
   * {@inheritdoc}
   */
  public function setHidden($hidden) {
    return $this
      ->lazyLoadItself()
      ->setHidden($hidden);
  }

  /**
   * {@inheritdoc}
   */
  public function isHidden() {
    return $this
      ->lazyLoadItself()
      ->isHidden();
  }

  /**
   * {@inheritdoc}
   */
  public function setDescription($description) {
    return $this
      ->lazyLoadItself()
      ->setDescription($description);
  }

  /**
   * {@inheritdoc}
   */
  public function getDescription() {
    return $this
      ->lazyLoadItself()
      ->getDescription();
  }

  /**
   * {@inheritdoc}
   */
  public function setHelp($help) {
    return $this
      ->lazyLoadItself()
      ->setHelp($help);
  }

  /**
   * {@inheritdoc}
   */
  public function getHelp() {
    return $this
      ->lazyLoadItself()
      ->getHelp();
  }

  /**
   * {@inheritdoc}
   */
  public function getProcessedHelp() {
    return $this
      ->lazyLoadItself()
      ->getProcessedHelp();
  }

  /**
   * {@inheritdoc}
   */
  public function setAliases($aliases) {
    return $this
      ->lazyLoadItself()
      ->setAliases($aliases);
  }

  /**
   * {@inheritdoc}
   */
  public function getAliases() {
    return $this
      ->lazyLoadItself()
      ->getAliases();
  }

  /**
   * {@inheritdoc}
   */
  public function getSynopsis($short = FALSE) {
    return $this
      ->lazyLoadItself()
      ->getSynopsis($short);
  }

  /**
   * {@inheritdoc}
   */
  public function addUsage($usage) {
    return $this
      ->lazyLoadItself()
      ->addUsage($usage);
  }

  /**
   * {@inheritdoc}
   */
  public function getUsages() {
    return $this
      ->lazyLoadItself()
      ->getUsages();
  }

  /**
   * {@inheritdoc}
   */
  public function getHelper($name) {
    return $this
      ->lazyLoadItself()
      ->getHelper($name);
  }

  /**
   * {@inheritdoc}
   */
  public function setContainer($container) {
    return $this
      ->lazyLoadItself()
      ->setContainer($container);
  }

  /**
   * {@inheritdoc}
   */
  public function has($key) {
    return $this
      ->lazyLoadItself()
      ->has($key);
  }

  /**
   * {@inheritdoc}
   */
  public function get($key) {
    return $this
      ->lazyLoadItself()
      ->get($key);
  }

  /**
   * {@inheritdoc}
   */
  public function setTranslator($translator) {
    return $this
      ->lazyLoadItself()
      ->setTranslator($translator);
  }

  /**
   * {@inheritdoc}
   */
  public function trans($key) {
    return $this
      ->lazyLoadItself()
      ->trans($key);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DependencySerializationTrait::$_entityStorages protected property An array of entity type IDs keyed by the property name of their storages.
DependencySerializationTrait::$_serviceIds protected property An array of service IDs keyed by property name used for serialization.
DependencySerializationTrait::__sleep public function 1
DependencySerializationTrait::__wakeup public function 2
ListCommand::$container protected property The service container.
ListCommand::$drupalProxyOriginalServiceId protected property The id of the original proxied service.
ListCommand::$service protected property The real proxied service, after it was lazy loaded.
ListCommand::addArgument public function
ListCommand::addOption public function
ListCommand::addUsage public function
ListCommand::get public function
ListCommand::getAliases public function
ListCommand::getApplication public function
ListCommand::getDefinition public function
ListCommand::getDescription public function
ListCommand::getHelp public function
ListCommand::getHelper public function
ListCommand::getHelperSet public function
ListCommand::getName public function
ListCommand::getNativeDefinition public function
ListCommand::getProcessedHelp public function
ListCommand::getSynopsis public function
ListCommand::getUsages public function
ListCommand::has public function
ListCommand::ignoreValidationErrors public function
ListCommand::isEnabled public function
ListCommand::isHidden public function
ListCommand::lazyLoadItself protected function Lazy loads the real service from the container.
ListCommand::mergeApplicationDefinition public function
ListCommand::run public function
ListCommand::setAliases public function
ListCommand::setApplication public function
ListCommand::setCode public function
ListCommand::setContainer public function
ListCommand::setDefinition public function
ListCommand::setDescription public function
ListCommand::setHelp public function
ListCommand::setHelperSet public function
ListCommand::setHidden public function
ListCommand::setName public function
ListCommand::setProcessTitle public function
ListCommand::setTranslator public function
ListCommand::showMessage public function
ListCommand::trans public function
ListCommand::__construct public function Constructs a ProxyClass Drupal proxy object.