public function resolveClass(SplFileInfo $fileInfo, Closure $callback = null)
    {
        /** @noinspection PhpIncludeInspection */
        require_once $fileInfo->getPathname();

        $instance = app()->make($this->getModuleClassName($fileInfo));

        if (is_callable($callback)) {
            $callback($instance);
        }
    }