N98\Util\AutoloadHandler::__invoke PHP Method

__invoke() public method

public __invoke ( $className )
    public function __invoke($className)
    {
        if (!$this->splRegistered) {
            return false;
        }
        if (!$this->enabled) {
            return false;
        }
        if (!is_callable($this->callback)) {
            if ($this->flags & self::NO_EXCEPTION) {
                return false;
            }
            throw new \BadMethodCallException('Autoload callback is not callable');
        }
        return call_user_func($this->callback, $className);
    }