user2268997
user2268997

Reputation: 1391

Where to include common files in symfony2?

I want to know where to include files that are used extensively in the code.e.g: a "functions.php" file that contains common functions used amongst all the controllers.Since it doesn't look right to include it in every controller, where should I put the "include" statement it?

Upvotes: 0

Views: 115

Answers (1)

Talus
Talus

Reputation: 754

If you're using composer, you can specify a directive that includes automatically some files : https://getcomposer.org/doc/04-schema.md#files

Upvotes: 2

Related Questions