Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7771a38

Browse filesBrowse files
committed
created the components/ sub-directory to host documentation about the components
1 parent 6f710bf commit 7771a38
Copy full SHA for 7771a38

File tree

Expand file treeCollapse file tree

11 files changed

+504
-403
lines changed
Filter options
Expand file treeCollapse file tree

11 files changed

+504
-403
lines changed

‎cookbook/tools/autoloader.rst renamed to ‎components/class_loader.rst

Copy file name to clipboardExpand all lines: components/class_loader.rst
+14-4Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
.. index::
22
pair: Autoloader; Configuration
33

4-
How to autoload Classes
5-
=======================
4+
The ClassLoader Component
5+
=========================
6+
7+
The Symfony2 ClassLoader Component loads your project classes
8+
automatically if they follow some standard PHP conventions.
69

710
Whenever you use an undefined class, PHP uses the autoloading mechanism to
811
delegate the loading of a file defining the class. Symfony2 provides a
9-
"universal" autoloader, which is able to load classes from files that implement
10-
one of the following conventions:
12+
"universal" autoloader, which is able to load classes from files that
13+
implement one of the following conventions:
1114

1215
* The technical interoperability `standards`_ for PHP 5.3 namespaces and class
1316
names;
@@ -21,6 +24,9 @@ need.
2124
Usage
2225
-----
2326

27+
.. versionadded:: 2.1
28+
The ``useIncludePath`` method was added in Symfony 2.1.
29+
2430
Registering the :class:`Symfony\\Component\\ClassLoader\\UniversalClassLoader`
2531
autoloader is straightforward::
2632

@@ -29,6 +35,10 @@ autoloader is straightforward::
2935
use Symfony\Component\ClassLoader\UniversalClassLoader;
3036

3137
$loader = new UniversalClassLoader();
38+
39+
// You can search the include_path as a last resort.
40+
$loader->useIncludePath(true);
41+
3242
$loader->register();
3343

3444
For minor performance gains class paths can be cached in memory using APC by

‎cookbook/console.rst renamed to ‎components/console.rst

Copy file name to clipboardExpand all lines: components/console.rst
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
.. index::
22
single: Console; CLI
33

4+
The Symfony2 Console Component
5+
==============================
46

5-
How to create Console/Command-Line Commands
6-
===========================================
7+
The Symfony2 Console component eases the creation of beautiful and
8+
testable command line interfaces.
79

810
Symfony2 ships with a Console component, which allows you to create
911
command-line commands. Your console commands can be used for any recurring

‎cookbook/tools/finder.rst renamed to ‎components/finder.rst

Copy file name to clipboardExpand all lines: components/finder.rst
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
.. index::
22
single: Finder
33

4-
How to locate Files
5-
===================
4+
The Symfony2 Finder Component
5+
=============================
66

7-
The :namespace:`Symfony\\Component\\Finder` component helps you to find files
8-
and directories quickly and easily.
7+
The Symfony2 Finder Component finds files and directories via an intuitive
8+
fluent interface.
99

1010
Usage
1111
-----

‎components/index.rst

Copy file name to clipboard
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
The Symfony2 Components
2+
=======================
3+
4+
.. toctree::
5+
:maxdepth: 1
6+
7+
class_loader
8+
console
9+
finder
10+
yaml

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.