public function modules()
    {
        $modules = new Collection;

        // Make meta module
        $modules->push(
            $this->makeMetaModuleInstance()
        );

        // Make model modules
        foreach ($this->repository->getAll() as $modelInformation) {
            $modules->push(
                $this->makeModuleInstance($modelInformation)
            );
        }

        return $modules;
    }
public function modules()
    {
        $modules = new Collection;

        // Make meta module
        $modules->push(
            $this->makeMetaModuleInstance()
        );

        // Make model modules
        foreach ($this->repository->getAll() as $modelInformation) {
            $modules->push(
                $this->makeModuleInstance($modelInformation)
            );
        }

        return $modules;
    }
public function modules ( ) { $ modules = new Collection ; // Make meta module $ modules -> push ( $ this -> makeMetaModuleInstance ( ) ) ; // Make model modules foreach ( $ this -> repository -> getAll ( ) as $ modelInformation ) { $ modules -> push ( $ this -> makeModuleInstance ( $ modelInformation ) ) ; } return $ modules ; }
Generates and returns module instances.

@return Collection|ModuleInterface[]
Generates and returns module instances .