Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
5a08609d
Commit
5a08609d
authored
May 05, 2011
by
Igor Wiedler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[docs] Discourage use statements for the Silex namespace in apps
parent
cd4d3edb
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
9 additions
and
27 deletions
+9
-27
doc/extensions/doctrine.rst
doc/extensions/doctrine.rst
+1
-3
doc/extensions/monolog.rst
doc/extensions/monolog.rst
+1
-3
doc/extensions/session.rst
doc/extensions/session.rst
+1
-3
doc/extensions/translation.rst
doc/extensions/translation.rst
+1
-3
doc/extensions/twig.rst
doc/extensions/twig.rst
+1
-3
doc/extensions/url_generator.rst
doc/extensions/url_generator.rst
+1
-3
doc/extensions/validator.rst
doc/extensions/validator.rst
+1
-3
doc/services.rst
doc/services.rst
+1
-3
doc/usage.rst
doc/usage.rst
+1
-3
No files found.
doc/extensions/doctrine.rst
View file @
5a08609d
...
@@ -60,9 +60,7 @@ and *Doctrine Common* in ``vendor/doctrine-common``.
...
@@ -60,9 +60,7 @@ and *Doctrine Common* in ``vendor/doctrine-common``.
::
::
use Silex\Extension\DoctrineExtension;
$app->register(new Silex\Extension\DoctrineExtension(), array(
$app->register(new DoctrineExtension(), array(
'db.options' => array(
'db.options' => array(
'driver' => 'pdo_sqlite',
'driver' => 'pdo_sqlite',
'path' => __DIR__.'/app.db',
'path' => __DIR__.'/app.db',
...
...
doc/extensions/monolog.rst
View file @
5a08609d
...
@@ -48,9 +48,7 @@ directory.
...
@@ -48,9 +48,7 @@ directory.
::
::
use Silex\Extension\MonologExtension;
$app->register(new Silex\Extension\MonologExtension(), array(
$app->register(new MonologExtension(), array(
'monolog.logfile' => __DIR__.'/development.log',
'monolog.logfile' => __DIR__.'/development.log',
'monolog.class_path' => __DIR__.'/vendor/monolog/src',
'monolog.class_path' => __DIR__.'/vendor/monolog/src',
));
));
doc/extensions/session.rst
View file @
5a08609d
...
@@ -24,9 +24,7 @@ Registering
...
@@ -24,9 +24,7 @@ Registering
::
::
use Silex\Extension\SessionExtension;
$app->register(new Silex\Extension\SessionExtension());
$app->register(new SessionExtension());
Usage
Usage
-----
-----
...
...
doc/extensions/translation.rst
View file @
5a08609d
...
@@ -42,9 +42,7 @@ Make sure you place a copy of the Symfony2 Translation component in
...
@@ -42,9 +42,7 @@ Make sure you place a copy of the Symfony2 Translation component in
::
::
use Silex\Extension\TranslationExtension;
$app->register(new Silex\Extension\TranslationExtension(), array(
$app->register(new TranslationExtension(), array(
'locale_fallback' => 'en',
'locale_fallback' => 'en',
'translation.class_path' => __DIR__.'/vendor/symfony/src',
'translation.class_path' => __DIR__.'/vendor/symfony/src',
));
));
...
...
doc/extensions/twig.rst
View file @
5a08609d
...
@@ -43,9 +43,7 @@ directory.
...
@@ -43,9 +43,7 @@ directory.
::
::
use Silex\Extension\TwigExtension;
$app->register(new Silex\Extension\TwigExtension(), array(
$app->register(new TwigExtension(), array(
'twig.path' => __DIR__.'/views',
'twig.path' => __DIR__.'/views',
'twig.class_path' => __DIR__.'/vendor/twig/lib',
'twig.class_path' => __DIR__.'/vendor/twig/lib',
));
));
...
...
doc/extensions/url_generator.rst
View file @
5a08609d
...
@@ -25,9 +25,7 @@ Registering
...
@@ -25,9 +25,7 @@ Registering
::
::
use Silex\Extension\UrlGeneratorExtension;
$app->register(new Silex\Extension\UrlGeneratorExtension());
$app->register(new UrlGeneratorExtension());
Usage
Usage
-----
-----
...
...
doc/extensions/validator.rst
View file @
5a08609d
...
@@ -37,9 +37,7 @@ Make sure you place a copy of the Symfony2 Validator component in
...
@@ -37,9 +37,7 @@ Make sure you place a copy of the Symfony2 Validator component in
::
::
use Silex\Extension\ValidatorExtension;
$app->register(new Silex\Extension\ValidatorExtension(), array(
$app->register(new ValidatorExtension(), array(
'validator.class_path' => __DIR__.'/vendor/symfony/src',
'validator.class_path' => __DIR__.'/vendor/symfony/src',
));
));
...
...
doc/services.rst
View file @
5a08609d
...
@@ -71,9 +71,7 @@ applies to Silex as well. ::
...
@@ -71,9 +71,7 @@ applies to Silex as well. ::
or ::
or ::
use Silex\Application;
$app = new Silex\Application();
$app = new Application();
Parameters
Parameters
~~~~~~~~~~
~~~~~~~~~~
...
...
doc/usage.rst
View file @
5a08609d
...
@@ -14,9 +14,7 @@ controller definitions, call the ``run`` method on your application.
...
@@ -14,9 +14,7 @@ controller definitions, call the ``run`` method on your application.
require_once __DIR__.'/silex.phar';
require_once __DIR__.'/silex.phar';
use Silex\Application;
$app = new Silex\Application();
$app = new Application();
// definitions
// definitions
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment