[sfServiceContainer]

10 views
Skip to first unread message

Mark

unread,
Jan 25, 2011, 1:56:06 PM1/25/11
to Symfony Components
I use the sfServiceContainer of Symfony for my own project. It is a
nice library and it does almost what I want it to do. Currently I have
one small problem I cannot find in the documentation.

I create a PDO class and try to call the following method:
PDO->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

Calling this method after creation of the class is no problem with the
calls directive. Using constants as parameters is a problem however.
Currently I use the Yaml configuration, but cannot find a way in the
documentation to pass constants as parameters.

How do I do this?

Mark

unread,
Jan 25, 2011, 1:56:05 PM1/25/11
to Symfony Components
Reply all
Reply to author
Forward
0 new messages