channa ly
channa ly

Reputation: 9927

Symfony2 file and directory convention

Am learning Symfony2 framework. the structure of files and directories make me very annoyed. It make me really hard to follow things ej:

routing_dev.yml  //use underscore
AppCache.php   // use camel case

there is no unique convention.

Can anyone tell me when to use camel case and when to use underscore-separator in the framework ?

Upvotes: 0

Views: 292

Answers (1)

Jakub Zalas
Jakub Zalas

Reputation: 36191

PHP files containing classes follow camel case convention as they follow PSR-0 standard.

All the other files, like configurations or scripts, are lower cased.

Somehow I never found it confusing.

Upvotes: 2

Related Questions