schmunk42\giiant\generators\extension\Generator::generate PHP Method

generate() public method

public generate ( )
    public function generate()
    {
        $files = parent::generate();
        $modulePath = $this->getOutputPath();
        $packagePath = $modulePath . '/' . $this->packageName;
        if ($this->enableI18N) {
            $files[] = new CodeFile($modulePath . '/' . $this->packageName . '/messages_config.php', $this->render('messages_config.php', ['packagePath' => $packagePath]));
        }
        $files[] = new CodeFile($modulePath . '/' . $this->packageName . '/Bootstrap.php', $this->render('Bootstrap.php'));
        return $files;
    }