mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 07:33:50 +00:00
cs: Fix code style (safe rules only).
This commit is contained in:
@@ -1,23 +1,25 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Chill\DocGeneratorBundle\DataFixtures\ORM;
|
||||
|
||||
use Chill\DocGeneratorBundle\Entity\DocGeneratorTemplate;
|
||||
use Chill\PersonBundle\Entity\AccompanyingPeriod\AccompanyingPeriodWorkEvaluation;
|
||||
use Doctrine\Common\DataFixtures\AbstractFixture;
|
||||
|
||||
use Doctrine\Persistence\ObjectManager;
|
||||
use Doctrine\Common\DataFixtures\DependentFixtureInterface;
|
||||
|
||||
|
||||
use Chill\DocGeneratorBundle\Entity\DocGeneratorTemplate;
|
||||
|
||||
/**
|
||||
* Load DocGeneratorTemplate
|
||||
*
|
||||
* @author Champs-Libres Coop
|
||||
* Load DocGeneratorTemplate.
|
||||
*/
|
||||
class LoadDocGeneratorTemplate extends AbstractFixture
|
||||
class LoadDocGeneratorTemplate extends AbstractFixture
|
||||
{
|
||||
|
||||
public function load(ObjectManager $manager)
|
||||
{
|
||||
$templates = [
|
||||
@@ -37,16 +39,14 @@ class LoadDocGeneratorTemplate extends AbstractFixture
|
||||
];
|
||||
|
||||
foreach ($templates as $template) {
|
||||
|
||||
print('Adding doc generator templates '.$template['file'].")\n");
|
||||
echo 'Adding doc generator templates ' . $template['file'] . ")\n";
|
||||
|
||||
$newTemplate = (new DocGeneratorTemplate())
|
||||
->setName($template['name'])
|
||||
->setDescription($template['desc'])
|
||||
->setFile($template['file'])
|
||||
->setContext($template['context'])
|
||||
->setEntities($template['entities'])
|
||||
;
|
||||
->setEntities($template['entities']);
|
||||
|
||||
$manager->persist($newTemplate);
|
||||
|
||||
|
Reference in New Issue
Block a user