pageon / fork-cms-module-generator
The generator for Fork modules
Fund package maintenance!
carakas
1.0.0
2020-08-01 12:30 UTC
Requires
- php: ^7.0
- matthiasnoback/symfony-console-form: ^2.2
- symfony/asset: ^3.2
- symfony/finder: ^3.2
- symfony/framework-bundle: ^3.2
- symfony/security: ^3.2
- symfony/serializer: ^3.2
- symfony/templating: ^3.2
- symfony/twig-bundle: ^3.2
- symfony/validator: ^3.2
- symfony/yaml: ^3.2
- vierbergenlars/php-semver: ^3.0
Requires (Dev)
- beberlei/assert: ^2.7
- behat/behat: ^3.3
- sebastian/diff: ^1.4
- squizlabs/php_codesniffer: ^2.8
- symfony/var-dumper: ^3.2
README
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