PHP code example of pageon / fork-cms-module-generator
1. Go to this page and download the library: Download pageon/fork-cms-module-generator library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pageon / fork-cms-module-generator example snippets
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;
}
...
}