https://github.com/pageon/fork-cms-module-generator
WIP: Generator for domain and modules for fork-cms
https://github.com/pageon/fork-cms-module-generator
console fork fork-cms forkcms generator php
Last synced: 8 months ago
JSON representation
WIP: Generator for domain and modules for fork-cms
- Host: GitHub
- URL: https://github.com/pageon/fork-cms-module-generator
- Owner: pageon
- License: mit
- Created: 2017-01-19T21:03:48.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-08-01T12:32:20.000Z (over 5 years ago)
- Last Synced: 2025-04-20T13:00:35.512Z (11 months ago)
- Topics: console, fork, fork-cms, forkcms, generator, php
- Language: PHP
- Homepage: https://pageon.github.io/fork-cms-module-generator
- Size: 446 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Fork-cms module generator
[](https://travis-ci.org/sumocoders/fork-cms-module-generator)
## 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`