[Dependency Injection] Use the setFile() option in case of an XML description

2 views
Skip to first unread message

Marijn

unread,
Dec 17, 2009, 11:47:52 AM12/17/09
to Symfony Components
Hi guys,

I just stumbled upon the setFile method of the
sfServiceContainerBuilder but I can't find it's equivalent in XML.
Does anybody know it this is implemented?

Kindest regards,

Marijn

Marijn

unread,
Dec 17, 2009, 2:30:21 PM12/17/09
to Symfony Components
Ok, I guess I've been coding too much today, I read over it in the
manual, for clarity I'll post it.

You can specify the file that is required for a service by creating a
file node within the service node.

E.g. <service id="user" class="User"><file>/your/path/to/user.php</
file></service>

Reply all
Reply to author
Forward
0 new messages