pageon/fork-cms-module-generator

The generator for Fork modules

Fund package maintenance!
carakas

Installs: 56

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 3

Forks: 3

Type:application

1.0.0 2020-08-01 12:30 UTC

README

Build Status

Installation

Use composer to install the package to your dev dependencies.

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

Register the following bundles in your Fork app/AppKernel.php, but only load them in dev or test mode.

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;
    }

    ...
}

Tests

You can run the tests with composer test