From 469d0ea2bee868ae03ae46e9647b5413c8a53377 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Tue, 22 Nov 2016 10:10:57 +0100 Subject: [PATCH 1/2] Added Doctrine entities and documents to the list of known locations for classes --- bundles/best_practices.rst | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/bundles/best_practices.rst b/bundles/best_practices.rst index 44e65e1d66c..2dc4806704f 100644 --- a/bundles/best_practices.rst +++ b/bundles/best_practices.rst @@ -116,23 +116,20 @@ files are going to be part of the repository. The following classes and files have specific emplacements (some are mandatory and others are just conventions followed by most developers): -=============================== ============================= ================ -Type Directory Mandatory? -=============================== ============================= ================ -Commands ``Command/`` Yes -Controllers ``Controller/`` No -Service Container Extensions ``DependencyInjection/`` Yes -Event Listeners ``EventListener/`` No -Model classes [1] ``Model/`` No -Configuration ``Resources/config/`` No -Web Resources (CSS, JS, images) ``Resources/public/`` Yes -Translation files ``Resources/translations/`` Yes -Templates ``Resources/views/`` Yes -Unit and Functional Tests ``Tests/`` No -=============================== ============================= ================ - -[1] See :doc:`/doctrine/mapping_model_classes` for how to handle the -mapping with a compiler pass. +=============================== ======================================== ========== +Type Directory Mandatory? +=============================== ======================================== ========== +Commands ``Command/`` Yes +Controllers ``Controller/`` No +Service Container Extensions ``DependencyInjection/`` Yes +Doctrine entities and documents ``Entity/`` (ORM) or ``Document/`` (ODM) No +Event Listeners ``EventListener/`` No +Configuration ``Resources/config/`` No +Web Resources (CSS, JS, images) ``Resources/public/`` Yes +Translation files ``Resources/translations/`` Yes +Templates ``Resources/views/`` Yes +Unit and Functional Tests ``Tests/`` No +=============================== ======================================== ========== Classes ------- From 87647084dd393df798c9fbd1a414b20ef948f0bd Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Sun, 29 Oct 2017 12:43:05 +0100 Subject: [PATCH 2/2] Final updates --- bundles/best_practices.rst | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/bundles/best_practices.rst b/bundles/best_practices.rst index 2dc4806704f..333956d5716 100644 --- a/bundles/best_practices.rst +++ b/bundles/best_practices.rst @@ -116,20 +116,23 @@ files are going to be part of the repository. The following classes and files have specific emplacements (some are mandatory and others are just conventions followed by most developers): -=============================== ======================================== ========== -Type Directory Mandatory? -=============================== ======================================== ========== -Commands ``Command/`` Yes -Controllers ``Controller/`` No -Service Container Extensions ``DependencyInjection/`` Yes -Doctrine entities and documents ``Entity/`` (ORM) or ``Document/`` (ODM) No -Event Listeners ``EventListener/`` No -Configuration ``Resources/config/`` No -Web Resources (CSS, JS, images) ``Resources/public/`` Yes -Translation files ``Resources/translations/`` Yes -Templates ``Resources/views/`` Yes -Unit and Functional Tests ``Tests/`` No -=============================== ======================================== ========== +=================================================== ======================================== +Type Directory +=================================================== ======================================== +Commands ``Command/`` +Controllers ``Controller/`` +Service Container Extensions ``DependencyInjection/`` +Doctrine ORM entities (when not using annotations) ``Entity/`` +Doctrine ODM documents (when not using annotations) ``Document/`` +Event Listeners ``EventListener/`` +Configuration ``Resources/config/`` +Web Resources (CSS, JS, images) ``Resources/public/`` +Translation files ``Resources/translations/`` +Validation (when not using annotations) ``Resources/config/validation/`` +Serialization (when not using annotations) ``Resources/config/serialization/`` +Templates ``Resources/views/`` +Unit and Functional Tests ``Tests/`` +=================================================== ======================================== Classes -------