__construct() public method

Constructor.
public __construct ( Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface $encoderFactory, string $algorithm, FOS\UserBundle\Util\CanonicalizerInterface $usernameCanonicalizer, FOS\UserBundle\Util\CanonicalizerInterface $emailCanonicalizer )
$encoderFactory Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface
$algorithm string
$usernameCanonicalizer FOS\UserBundle\Util\CanonicalizerInterface
$emailCanonicalizer FOS\UserBundle\Util\CanonicalizerInterface
Example #1
0
 /**
  * Constructor.
  *
  * @param EncoderFactoryInterface $encoderFactory
  * @param CanonicalizerInterface  $usernameCanonicalizer
  * @param CanonicalizerInterface  $emailCanonicalizer
  * @param ObjectManager           $om
  * @param string                  $class
  */
 public function __construct(EncoderFactoryInterface $encoderFactory, CanonicalizerInterface $usernameCanonicalizer, CanonicalizerInterface $emailCanonicalizer, ObjectManager $om, $class)
 {
     parent::__construct($encoderFactory, $usernameCanonicalizer, $emailCanonicalizer);
     $this->objectManager = $om;
     $this->repository = $om->getRepository($class);
     $metadata = $om->getClassMetadata($class);
     $this->class = $metadata->getName();
 }
 /**
  * Constructor.
  *
  * @param EncoderFactoryInterface $encoderFactory
  * @param CanonicalizerInterface  $usernameCanonicalizer
  * @param CanonicalizerInterface  $emailCanonicalizer
  * @param DocumentManager         $dm
  * @param string                  $class
  */
 public function __construct(EncoderFactoryInterface $encoderFactory, CanonicalizerInterface $usernameCanonicalizer, CanonicalizerInterface $emailCanonicalizer, DocumentManager $dm, $class)
 {
     parent::__construct($encoderFactory, $usernameCanonicalizer, $emailCanonicalizer);
     $this->dm = $dm;
     $this->repository = $dm->getRepository($class);
     $metadata = $dm->getClassMetadata($class);
     $this->class = $metadata->name;
 }
Example #3
0
 /**
  * Constructor.
  *
  * @param EncoderFactoryInterface $encoderFactory
  * @param string                  $algorithm
  * @param CanonicalizerInterface  $usernameCanonicalizer
  * @param CanonicalizerInterface  $emailCanonicalizer
  * @param EntityManager           $em
  * @param string                  $class
  */
 public function __construct(EncoderFactoryInterface $encoderFactory, $algorithm, CanonicalizerInterface $usernameCanonicalizer, CanonicalizerInterface $emailCanonicalizer, EntityManager $em, $class)
 {
     parent::__construct($encoderFactory, $algorithm, $usernameCanonicalizer, $emailCanonicalizer);
     $this->em = $em;
     $this->repository = $em->getRepository($class);
     $metadata = $em->getClassMetadata($class);
     $this->class = $metadata->name;
 }
 public function __construct(EncoderFactoryInterface $encoderFactory, CanonicalizerInterface $usernameCanonicalizer, CanonicalizerInterface $emailCanonicalizer, Connection $connection, $collection, $class)
 {
     $this->connection = $connection;
     $this->collection = $collection;
     $this->documentHandler = new DocumentHandler($this->connection);
     $this->class = $class;
     parent::__construct($encoderFactory, $usernameCanonicalizer, $emailCanonicalizer);
 }
 /**
  * Constructor.
  *
  * @param EncoderFactoryInterface $encoderFactory
  * @param CanonicalizerInterface  $usernameCanonicalizer
  * @param CanonicalizerInterface  $emailCanonicalizer
  * @param string                  $proxyClass
  * @param string                  $modelClass
  */
 public function __construct(EncoderFactoryInterface $encoderFactory, CanonicalizerInterface $usernameCanonicalizer, CanonicalizerInterface $emailCanonicalizer, $proxyClass, $modelClass)
 {
     parent::__construct($encoderFactory, $usernameCanonicalizer, $emailCanonicalizer);
     $this->class = $proxyClass;
     $this->modelClass = $modelClass;
 }
Example #6
0
 /**
  * Constructor.
  *
  * @param EncoderFactoryInterface $encoderFactory
  * @param CanonicalizerInterface  $usernameCanonicalizer
  * @param CanonicalizerInterface  $emailCanonicalizer
  * @param ObjectManager           $om
  * @param string                  $class
  */
 public function __construct(EncoderFactoryInterface $encoderFactory, CanonicalizerInterface $usernameCanonicalizer, CanonicalizerInterface $emailCanonicalizer, ObjectManager $om, $class)
 {
     parent::__construct($encoderFactory, $usernameCanonicalizer, $emailCanonicalizer);
     $this->objectManager = $om;
     $this->entity = $class;
 }