/**
  * Constructor
  * 
  * @param ContainerInterface $container
  */
 public function __construct(ContainerInterface $container)
 {
     parent::__construct($container);
     if (class_exists('Sfynx\\MediaBundle\\Entity\\Mediatheque')) {
         $this->addAssociation('Sfynx\\MediaBundle\\Entity\\Mediatheque', 'mapOneToMany', array('fieldName' => 'contact1', 'targetEntity' => 'PiApp\\GedmoBundle\\Entity\\Contact', 'cascade' => array('persist'), 'mappedBy' => 'media'));
         $this->addAssociation('Sfynx\\MediaBundle\\Entity\\Mediatheque', 'mapOneToMany', array('fieldName' => 'contact2', 'targetEntity' => 'PiApp\\GedmoBundle\\Entity\\Contact', 'cascade' => array('persist'), 'mappedBy' => 'media1'));
         $this->addAssociation('Sfynx\\MediaBundle\\Entity\\Mediatheque', 'mapOneToMany', array('fieldName' => 'menu', 'targetEntity' => 'PiApp\\GedmoBundle\\Entity\\Menu', 'cascade' => array('persist'), 'mappedBy' => 'media'));
         $this->addAssociation('Sfynx\\MediaBundle\\Entity\\Mediatheque', 'mapOneToMany', array('fieldName' => 'slider', 'targetEntity' => 'PiApp\\GedmoBundle\\Entity\\Slider', 'cascade' => array('persist'), 'mappedBy' => 'media'));
         $this->addAssociation('Sfynx\\MediaBundle\\Entity\\Mediatheque', 'mapOneToMany', array('fieldName' => 'block', 'targetEntity' => 'PiApp\\GedmoBundle\\Entity\\Block', 'cascade' => array('persist'), 'mappedBy' => 'media'));
         $this->addAssociation('Sfynx\\MediaBundle\\Entity\\Mediatheque', 'mapOneToMany', array('fieldName' => 'block2', 'targetEntity' => 'PiApp\\GedmoBundle\\Entity\\Block', 'cascade' => array('persist'), 'mappedBy' => 'media1'));
         $this->addAssociation('Sfynx\\MediaBundle\\Entity\\Mediatheque', 'mapOneToMany', array('fieldName' => 'organigram', 'targetEntity' => 'PiApp\\GedmoBundle\\Entity\\Organigram', 'cascade' => array('persist'), 'mappedBy' => 'media'));
         $this->addAssociation('Sfynx\\MediaBundle\\Entity\\Mediatheque', 'mapOneToMany', array('fieldName' => 'entitycategory', 'targetEntity' => 'PiApp\\GedmoBundle\\Entity\\Category', 'cascade' => array('persist'), 'mappedBy' => 'media'));
     }
 }
 /**
  * Constructs a new instance of SecurityListener.
  *
  * @param ContainerInterface        $container
  */
 public function __construct(ContainerInterface $container)
 {
     parent::__construct($container);
 }
 /**
  * Initialization of subscriber
  * 
  * @param string $encryptorClass  The encryptor class.  This can be empty if
  * a service is being provided.
  * @param string $secretKey The secret key.
  * @param EncryptorInterface|NULL $service (Optional)  An EncryptorInterface.
  * This allows for the use of dependency injection for the encrypters.
  */
 public function __construct(Reader $annReader, ContainerInterface $container)
 {
     parent::__construct($container);
     $this->annReader = $annReader;
     $this->container = $container;
 }
Ejemplo n.º 4
0
 /**
  * Constructor
  * 
  * @param ContainerInterface $container
  */
 public function __construct(ContainerInterface $container)
 {
     parent::__construct($container);
     // Sets parameter template values.
     $this->setParams();
 }