public function getHandler(): ?Autowire
    {
        if (empty($this->config['handler'])) {
            return null;
        }

        if ($this->config['handler'] instanceof Autowire) {
            return $this->config['handler'];
        }

        if (class_exists($this->config['handler'])) {
            return new Autowire($this->config['handler']);
        }

        $handler = $this->config['handlers'][$this->config['handler']];

        return new Autowire($handler['class'], $handler['options']);
    }
public function getHandler(): ?Autowire
    {
        if (empty($this->config['handler'])) {
            return null;
        }

        if ($this->config['handler'] instanceof Autowire) {
            return $this->config['handler'];
        }

        if (class_exists($this->config['handler'])) {
            return new Autowire($this->config['handler']);
        }

        $handler = $this->config['handlers'][$this->config['handler']];

        return new Autowire($handler['class'], $handler['options']);
    }
public function getHandler ( ) : ? Autowire { if ( empty ( $ this -> config [ 'handler' ] ) ) { return null ; } if ( $ this -> config [ 'handler' ] instanceof Autowire ) { return $ this -> config [ 'handler' ] ; } if ( class_exists ( $ this -> config [ 'handler' ] ) ) { return new Autowire ( $ this -> config [ 'handler' ] ) ; } $ handler = $ this -> config [ 'handlers' ] [ $ this -> config [ 'handler' ] ] ; return new Autowire ( $ handler [ 'class' ] , $ handler [ 'options' ] ) ; }
Get handler autowire options.

@return Autowire
Get handler autowire options .