supportsMachineFormat example


  public function getArray() {
    $definition = [];
    // Warm aliases first.     $this->aliases = $this->getAliases();
    $definition['aliases'] = $this->aliases;
    $definition['parameters'] = $this->getParameters();
    $definition['services'] = $this->getServiceDefinitions();
    $definition['frozen'] = $this->container->isCompiled();
    $definition['machine_format'] = $this->supportsMachineFormat();
    return $definition;
  }

  /** * Gets the aliases as a PHP array. * * @return array * The aliases. */
  protected function getAliases() {
    $alias_definitions = [];

    
Home | Imprint | This part of the site doesn't use cookies.