infinito/application/symfony/README.md

35 lines
705 B
Markdown
Raw Normal View History

2019-01-26 16:47:51 +01:00
## backend application
2018-09-13 13:00:23 +02:00
2019-01-26 16:47:51 +01:00
## conventions
2018-09-13 13:00:23 +02:00
2019-01-26 16:47:51 +01:00
### coding
2018-09-13 13:00:23 +02:00
2019-01-26 16:47:51 +01:00
#### symfony
The application MUST use Symfony 4. coding standards
#### php
2018-09-13 13:00:23 +02:00
PHP code MUST follow the [PSR-4](https://www.php-fig.org/psr/psr-4/) standard.
2019-01-26 16:47:51 +01:00
#### twig
2018-09-13 13:00:23 +02:00
Twig templates MUST follow the [Symfony Template best practices](https://symfony.com/doc/current/best_practices/templates.html).
### naming
#### interfaces
A Interfaces MUST be named *ClassnameInterface*.
It SHOULD be based in the directory of the class.
#### abstract classes
A abstract class MUST be named *AbstractClassname*.
It SHOULD be based in the directory of the classes which inherit from it.
2019-01-26 16:47:51 +01:00
###### entities
2018-09-13 13:00:23 +02:00
2019-01-26 16:47:51 +01:00
####### source
2018-09-13 13:00:23 +02:00
A source MUST be named *SourcenameSource*.