__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
コード例 #1
0
ファイル: UserManager.php プロジェクト: Dren-x/mobitnew
 /**
  * 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();
 }
コード例 #2
0
 /**
  * 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;
 }
コード例 #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;
 }
コード例 #4
0
 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);
 }
コード例 #5
0
 /**
  * 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;
 }
コード例 #6
0
ファイル: UserManager.php プロジェクト: csbill/csbill
 /**
  * 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;
 }