protected function makeModuleInstance(ModelInformationInterface $information)
    {
        $modelClass = $information->modelClass();

        $module = new ModelModule(
            app(ModelInformationRepositoryInterface::class),
            $this->moduleHelper,
            app(RouteHelperInterface::class),
            $this->makeModuleKey($modelClass),
            $this->makeModuleName($modelClass)
        );

        $module->setAssociatedClass($modelClass);

        if ($information->meta->controller) {
            $module->setWebController($information->meta->controller);
        }

        if ($information->meta->controller_api) {
            $module->setApiController($information->meta->controller_api);
        }

        return $module;
    }
protected function makeModuleInstance(ModelInformationInterface $information)
    {
        $modelClass = $information->modelClass();

        $module = new ModelModule(
            app(ModelInformationRepositoryInterface::class),
            $this->moduleHelper,
            app(RouteHelperInterface::class),
            $this->makeModuleKey($modelClass),
            $this->makeModuleName($modelClass)
        );

        $module->setAssociatedClass($modelClass);

        if ($information->meta->controller) {
            $module->setWebController($information->meta->controller);
        }

        if ($information->meta->controller_api) {
            $module->setApiController($information->meta->controller_api);
        }

        return $module;
    }
protected function makeModuleInstance ( ModelInformationInterface $ information ) { $ modelClass = $ information -> modelClass ( ) ; $ module = new ModelModule ( app ( ModelInformationRepositoryInterface :: class ) , $ this -> moduleHelper , app ( RouteHelperInterface :: class ) , $ this -> makeModuleKey ( $ modelClass ) , $ this -> makeModuleName ( $ modelClass ) ) ; $ module -> setAssociatedClass ( $ modelClass ) ; if ( $ information -> meta -> controller ) { $ module -> setWebController ( $ information -> meta -> controller ) ; } if ( $ information -> meta -> controller_api ) { $ module -> setApiController ( $ information -> meta -> controller_api ) ; } return $ module ; }
Makes a model module instance for model information.

@param ModelInformationInterface|ModelInformation $information
@return ModelModule
Makes a model module instance for model information .