This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AppBundle\Entity\User: | |
user{1..30}: | |
name: <name()> | |
email: <email()> | |
password: <encodePassword(@self, "123")> | |
address: <address()> | |
lat: <latitude()> | |
lng: <longitude()> | |
phone: <phoneNumber()> | |
zip: <postcode()> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function encodePassword(User $user, $plainPassword) | |
{ | |
/** @var \Symfony\Component\Security\Core\Encoder\PasswordEncoderInterface $encoder */ | |
$encoder = $this->container->get('security.encoder_factory') | |
->getEncoder($user); | |
return $encoder->encodePassword($plainPassword, $user->getSalt()); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AppBundle\Entity\Category: | |
category{1..150}: | |
__construct: false | |
title: <word()> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AppBundle\Entity\User: | |
user{1..30}: | |
name: <name()> | |
email: <email()> | |
password: <sha1()> | |
address: <address()> | |
lat: <latitude()> | |
lng: <longitude()> | |
phone: <phoneNumber()> | |
zip: <postcode()> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doctrine: | |
dbal: | |
default_connection: default | |
connections: | |
default: | |
driver: pdo_sqlite | |
memory: true | |
charset: UTF8 | |
mapping_types: | |
enum: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace AppBundle\DataFixtures\ORM; | |
use Hautelook\AliceBundle\Alice\DataFixtureLoader; | |
class FixturesLoader extends DataFixtureLoader | |
{ | |
/** | |
* Returns an array of file paths to fixtures |