[FLOW3-general] Passing settings to objects constructor in Objects.yaml

Rens Admiraal renst3 at e-rank.nl
Tue May 18 08:57:31 CEST 2010


I've a class in my package to which I want to pass settings from the
Settings.yaml file of my package. The class implements the
AuthenticationProviderInterface, and the constructor method has 2 arguments
($name, array $options).

 

In my Settings.yaml file I have something like:

 

Package:

  security:

    authentication:

      LDAP:

        base_dn: 'dc=domain,dc=com'

 

and in my Objects.yaml file I have:

 

F3\Package\Security\Authentication\Provider\LDAP:

  arguments:

    2:

      setting: Package.security.authentication.LDAP

 

 

Now I expect the $options array to contain an array with 1 value with index
'base_dn', but the array is empty. What part of the documentation did I
miss? J

 

 

Greetz,

Rens



More information about the FLOW3-general mailing list