PHP code example of formapro / yadm-bundle
1. Go to this page and download the library: Download formapro/yadm-bundle 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/ */
formapro / yadm-bundle example snippets
# /app/AppKernel.php
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = [
new \Formapro\Yadm\Bundle\YadmBundle(),
];
return $bundles;
}
}
$registry = $container->get('yadm');
$productStorage = $registry->getStorage('Acme\Model\Category');
declare(strict_types=1);
namespace App\YadmMigrations;
use Formapro\Yadm\Migration\Migration;
use Formapro\Yadm\Registry;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Migration20190301122316 implements Migration
{
public function execute(Registry $yadm): void
{
}
}
bash
$ composer