PHP code example of aligent / oro-fixtures
1. Go to this page and download the library: Download aligent/oro-fixtures 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/ */
aligent / oro-fixtures example snippets
if (class_exists('Nelmio\Alice\Bridge\Symfony\NelmioAliceBundle')
&& class_exists('Fidry\AliceDataFixtures\Bridge\Symfony\FidryAliceDataFixturesBundle')) {
$bundles[] = new Nelmio\Alice\Bridge\Symfony\NelmioAliceBundle();
$bundles[] = new Fidry\AliceDataFixtures\Bridge\Symfony\FidryAliceDataFixturesBundle();
}
namespace Acme\BaseBundle\Migrations\Data\Demo\ORM;
use Aligent\FixturesBundle\Fixtures\AbstractAliceFixture;
class ExampleDemoDataFixture extends AbstractAliceFixture
{
protected function getFixtures(): string
{
return __DIR__ . '/data';
}
}