justcarakas/fork-cms-module-generator

此包已被废弃且不再维护。作者建议使用 pageon/fork-cms-module-generator 包。

Fork模块的生成器

资助包维护!
carakas

安装: 37

依赖者: 0

建议者: 0

安全性: 0

星标: 3

观察者: 2

分支: 3

类型:application

1.0.0 2020-08-01 12:30 UTC

README

Build Status

安装

使用composer将包安装到您的开发依赖中。

composer require --dev pageon/fork-cms-module-generator

在您的Fork app/AppKernel.php 中注册以下束,但只在开发或测试模式下加载。

class AppKernel extends Kernel
{
    /**
     * Load all the bundles we'll be using in our application.
     */
    public function registerBundles(): array
    {
        ...

        if (in_array($this->getEnvironment(), ['dev', 'test'])) {
            ...

            $bundles[] = new \Matthias\SymfonyConsoleForm\Bundle\SymfonyConsoleFormBundle();
            $bundles[] = new \ModuleGenerator\ModuleGeneratorBundle();
        }

        return $bundles;
    }

    ...
}

测试

您可以使用composer test运行测试。