Skip to content

Commit b0c069a

Browse files
committed
minor #4255 Updated autoload standard to PSR-4. (phansys)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #4255). Discussion ---------- Updated autoload standard to PSR-4. | Q | A | ------------- | --- | Doc fix? | no | New feature? | no | Applies to | 2.0+ | Tests pass? | yes | Fixed tickets | #3616 Commits ------- d9a2f61 Updated autoload standard to PSR-4.
2 parents 4127197 + d9a2f61 commit b0c069a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

contributing/code/standards.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ follow the same guidelines, and you should too.
99
Remember that the main advantage of standards is that every piece of code
1010
looks and feels familiar, it's not about this or that being more readable.
1111

12-
Symfony follows the standards defined in the `PSR-0`_, `PSR-1`_ and `PSR-2`_
12+
Symfony follows the standards defined in the `PSR-0`_, `PSR-1`_, `PSR-2`_ and `PSR-4`_
1313
documents.
1414

1515
Since a picture - or some code - is worth a thousand words, here's a short
@@ -111,7 +111,7 @@ Structure
111111

112112
* Define one class per file - this does not apply to private helper classes
113113
that are not intended to be instantiated from the outside and thus are not
114-
concerned by the `PSR-0`_ standard;
114+
concerned by the `PSR-0`_ and `PSR-4`_ autoload standards;
115115

116116
* Declare class properties before methods;
117117

@@ -185,3 +185,4 @@ License
185185
.. _`PSR-0`: http://www.php-fig.org/psr/psr-0/
186186
.. _`PSR-1`: http://www.php-fig.org/psr/psr-1/
187187
.. _`PSR-2`: http://www.php-fig.org/psr/psr-2/
188+
.. _`PSR-4`: http://www.php-fig.org/psr/psr-4/

cookbook/bundles/best_practices.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,4 +342,4 @@ Learn more from the Cookbook
342342

343343
* :doc:`/cookbook/bundles/extension`
344344

345-
.. _standards: http://www.php-fig.org/psr/psr-0/
345+
.. _standards: http://www.php-fig.org/psr/psr-4/

0 commit comments

Comments
 (0)