src/Charcoal/App/Handler/HandlerConfig.php
public function setController($controller)
    {
        if (empty($controller)) {
            $this->controller = null;
            return $this;
        }

        if (!is_string($controller)) {
            throw new InvalidArgumentException(
                'Handler view controller must be a string.'
            );
        }

        $this->controller = $controller;
        return $this;
    }
public function setController($controller)
    {
        if (empty($controller)) {
            $this->controller = null;
            return $this;
        }

        if (!is_string($controller)) {
            throw new InvalidArgumentException(
                'Handler view controller must be a string.'
            );
        }

        $this->controller = $controller;
        return $this;
    }
public function setController ( $ controller ) { if ( empty ( $ controller ) ) { $ this -> controller = null ; return $ this ; } if ( ! is_string ( $ controller ) ) { throw new InvalidArgumentException ( 'Handler view controller must be a string.' ) ; } $ this -> controller = $ controller ; return $ this ; }
Set the template controller.

@param  string|null $controller Handler controller name.
@throws InvalidArgumentException If the template controller is invalid.
@return self
Set the template controller .