title: Alice bundle create custom faker
body: <p>I use <code>alice-bundle</code> and have some fixtures</p>
  
  <pre><code>AppBundle\Entity\Admin:
  admin{1..3}:
      username: admin&lt;current()&gt;
      firstName: &lt;firstName('male')&gt;
      lastName: &lt;lastName()&gt;
      password: &lt;encodePassword(@self, @self-&gt;username)&gt;
  </code></pre>
  
  <p>In old version I create <code>FixtureLoader</code> class extends from <code>DataFixtureLoader</code> and just create public function <code>encodePassword</code> for my custom faker, very simple I guess</p>
  
  <pre><code>use Hautelook\AliceBundle\Alice\DataFixtureLoader;
  use Symfony\Component\Security\Core\User\UserInterface;
  class FixtureLoader extends DataFixtureLoader
  {
  /**
   * {@inheritDoc}
   */
  protected function getFixtures()
  {
      $prefix = __DIR__ . '/../Fixture/';
      return [
          $prefix . 'admin.yml',
          $prefix . 'city.yml',
          $prefix . 'country.yml',
          $prefix . 'location.yml',
          $prefix . 'user.yml',
          $prefix . 'voteSetting.yml',            
          $prefix . 'project.yml'
      ];
  }
  
  /**
   * @param UserInterface $user
   * @param $plainPassword
   * @return string
   */
  public function encodePassword(UserInterface $user, $plainPassword)
  {
      return $this-&gt;container-&gt;get('security.password_encoder')-&gt;encodePassword($user, $plainPassword);
  }
  }
  </code></pre>
  
  <p>But atm, when I install bundle I surprised, <code>DataFixtureLoader</code> not found, I guess deprecated. And my question, how to create my custom faker ?      </p>