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
9eb53b54
Commit
9eb53b54
authored
Sep 22, 2011
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renamed *Provider classes to *ServiceProvider
parent
a7894570
Changes
26
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
77 additions
and
68 deletions
+77
-68
CHANGELOG
CHANGELOG
+3
-1
doc/index.rst
doc/index.rst
+1
-1
doc/providers/doctrine.rst
doc/providers/doctrine.rst
+5
-5
doc/providers/http_cache.rst
doc/providers/http_cache.rst
+3
-3
doc/providers/monolog.rst
doc/providers/monolog.rst
+5
-5
doc/providers/session.rst
doc/providers/session.rst
+4
-4
doc/providers/translation.rst
doc/providers/translation.rst
+4
-4
doc/providers/twig.rst
doc/providers/twig.rst
+11
-4
doc/providers/url_generator.rst
doc/providers/url_generator.rst
+4
-4
doc/providers/validator.rst
doc/providers/validator.rst
+6
-6
src/Silex/Provider/DoctrineServiceProvider.php
src/Silex/Provider/DoctrineServiceProvider.php
+1
-1
src/Silex/Provider/FormServiceProvider.php
src/Silex/Provider/FormServiceProvider.php
+1
-1
src/Silex/Provider/HttpCacheServiceProvider.php
src/Silex/Provider/HttpCacheServiceProvider.php
+1
-1
src/Silex/Provider/MonologServiceProvider.php
src/Silex/Provider/MonologServiceProvider.php
+1
-1
src/Silex/Provider/SessionServiceProvider.php
src/Silex/Provider/SessionServiceProvider.php
+1
-1
src/Silex/Provider/SwiftmailerServiceProvider.php
src/Silex/Provider/SwiftmailerServiceProvider.php
+1
-1
src/Silex/Provider/SymfonyBridgesServiceProvider.php
src/Silex/Provider/SymfonyBridgesServiceProvider.php
+1
-1
src/Silex/Provider/TranslationServiceProvider.php
src/Silex/Provider/TranslationServiceProvider.php
+1
-1
src/Silex/Provider/TwigServiceProvider.php
src/Silex/Provider/TwigServiceProvider.php
+1
-1
src/Silex/Provider/UrlGeneratorServiceProvider.php
src/Silex/Provider/UrlGeneratorServiceProvider.php
+1
-1
src/Silex/Provider/ValidatorServiceProvider.php
src/Silex/Provider/ValidatorServiceProvider.php
+1
-1
tests/Silex/Tests/Provider/DoctrineServiceProviderTest.php
tests/Silex/Tests/Provider/DoctrineServiceProviderTest.php
+4
-4
tests/Silex/Tests/Provider/MonologServiceProviderTest.php
tests/Silex/Tests/Provider/MonologServiceProviderTest.php
+3
-3
tests/Silex/Tests/Provider/SessionServiceProviderTest.php
tests/Silex/Tests/Provider/SessionServiceProviderTest.php
+3
-3
tests/Silex/Tests/Provider/TwigServiceProviderTest.php
tests/Silex/Tests/Provider/TwigServiceProviderTest.php
+3
-3
tests/Silex/Tests/Provider/UrlGeneratorServiceProviderTest.php
.../Silex/Tests/Provider/UrlGeneratorServiceProviderTest.php
+7
-7
No files found.
CHANGELOG
View file @
9eb53b54
This changelog references all backward incompatibilities as we introduce them:
* 2011-21-09: `ExtensionInterface` has been renamed to
`ServiceProviderInterface`.
`ServiceProviderInterface`. All built-in extensions have been renamed
accordingly (for instance, `Silex\Extension\TwigExtension` has been renamed
to `Silex\Provider\TwigServiceProvider`)
* 2011-21-09: The way reusable applications work has changed. The `mount()`
method now takes an instance of `ControllerCollection` instead of an
...
...
doc/index.rst
View file @
9eb53b54
...
...
@@ -11,4 +11,4 @@ Silex
testing
internals
contributing
extension
s/index
provider
s/index
doc/providers/doctrine.rst
View file @
9eb53b54
DoctrineProvider
================
Doctrine
Service
Provider
================
=======
The *DoctrineProvider* provides integration with the `Doctrine DBAL
The *Doctrine
Service
Provider* provides integration with the `Doctrine DBAL
<http://www.doctrine-project.org/projects/dbal>`_ for easy database acccess.
.. note::
...
...
@@ -58,7 +58,7 @@ Registering
Make sure you place a copy of *Doctrine DBAL* in ``vendor/doctrine-dbal``
and *Doctrine Common* in ``vendor/doctrine-common``::
$app->register(new Silex\Provider\DoctrineProvider(), array(
$app->register(new Silex\Provider\Doctrine
Service
Provider(), array(
'db.options' => array(
'driver' => 'pdo_sqlite',
'path' => __DIR__.'/app.db',
...
...
@@ -89,7 +89,7 @@ configure the data sources, replace the **db.options** with **dbs.options**.
**dbs.options** is an array of configurations where keys are connection names
and values are options::
$app->register(new Silex\Provider\DoctrineProvider(), array(
$app->register(new Silex\Provider\Doctrine
Service
Provider(), array(
'dbs.options' => array (
'mysql_read' => array(
'driver' => 'pdo_mysql',
...
...
doc/providers/http_cache.rst
View file @
9eb53b54
HttpCacheProvider
=================
HttpCache
Service
Provider
=================
=======
The *HttpCacheProvider* provides support for the Symfony2 Reverse Proxy.
...
...
@@ -23,7 +23,7 @@ Registering
::
$app->register(new Silex\Provider\HttpCacheProvider(), array(
$app->register(new Silex\Provider\HttpCache
Service
Provider(), array(
'http_cache.cache_dir' => __DIR__.'/cache/',
));
...
...
doc/providers/monolog.rst
View file @
9eb53b54
MonologProvider
===============
Monolog
Service
Provider
===============
=======
The *MonologProvider* provides a default logging mechanism
The *Monolog
Service
Provider* provides a default logging mechanism
through Jordi Boggiano's `Monolog <https://github.com/Seldaek/monolog>`_
library.
...
...
@@ -46,7 +46,7 @@ Registering
Make sure you place a copy of *Monolog* in the ``vendor/monolog``
directory::
$app->register(new Silex\Provider\MonologProvider(), array(
$app->register(new Silex\Provider\Monolog
Service
Provider(), array(
'monolog.logfile' => __DIR__.'/development.log',
'monolog.class_path' => __DIR__.'/vendor/monolog/src',
));
...
...
@@ -59,7 +59,7 @@ directory::
Usage
-----
The MonologProvider provides a ``monolog`` service. You can use
The Monolog
Service
Provider provides a ``monolog`` service. You can use
it to add log entries for any logging level through ``addDebug()``,
``addInfo()``, ``addWarning()`` and ``addError()``.
...
...
doc/providers/session.rst
View file @
9eb53b54
SessionProvider
===============
Session
Service
Provider
===============
=======
The *SessionProvider* provides a service for storing data persistently
The *Session
Service
Provider* provides a service for storing data persistently
between requests.
Parameters
...
...
@@ -40,7 +40,7 @@ Registering
::
$app->register(new Silex\Provider\SessionProvider());
$app->register(new Silex\Provider\Session
Service
Provider());
Usage
-----
...
...
doc/providers/translation.rst
View file @
9eb53b54
TranslationProvider
===================
Translation
Service
Provider
===================
=======
The *TranslationProvider* provides a service for translating your application
The *Translation
Service
Provider* provides a service for translating your application
into different languages.
Parameters
...
...
@@ -40,7 +40,7 @@ Registering
Make sure you place a copy of the Symfony2 Translation component in
``vendor/symfony/src``. You can simply clone the whole Symfony2 into vendor::
$app->register(new Silex\Provider\TranslationProvider(), array(
$app->register(new Silex\Provider\Translation
Service
Provider(), array(
'locale_fallback' => 'en',
'translation.class_path' => __DIR__.'/vendor/symfony/src',
));
...
...
doc/providers/twig.rst
View file @
9eb53b54
TwigProvider
============
Twig
Service
Provider
============
=======
The *TwigProvider* provides integration with the `Twig
The *Twig
Service
Provider* provides integration with the `Twig
<http://twig.sensiolabs.org/>`_ template engine.
Parameters
...
...
@@ -39,7 +39,7 @@ Registering
Make sure you place a copy of *Twig* in the ``vendor/twig``
directory::
$app->register(new Silex\Provider\TwigProvider(), array(
$app->register(new Silex\Provider\Twig
Service
Provider(), array(
'twig.path' => __DIR__.'/views',
'twig.class_path' => __DIR__.'/vendor/twig/lib',
));
...
...
@@ -66,7 +66,14 @@ In any Twig template, the ``app`` variable refers to the Application object.
So you can access any services from within your view. For example to access
``$app['request']->getHost()``, just put this in your template:
<<<<<<< HEAD
.. code-block:: jinja
=======
The TwigServiceProvider also registers the application as a global
named ``app``. So you can access any services from within your
view. For example to access ``$app['request']->getHost()``,
just put this in your template:
>>>>>>> renamed *Provider classes to *ServiceProvider
{{ app.request.host }}
...
...
doc/providers/url_generator.rst
View file @
9eb53b54
UrlGeneratorProvider
====================
UrlGenerator
Service
Provider
====================
=======
The *UrlGeneratorProvider* provides a service for generating
The *UrlGenerator
Service
Provider* provides a service for generating
URLs for named routes.
Parameters
...
...
@@ -25,7 +25,7 @@ Registering
::
$app->register(new Silex\Provider\UrlGeneratorProvider());
$app->register(new Silex\Provider\UrlGenerator
Service
Provider());
Usage
-----
...
...
doc/providers/validator.rst
View file @
9eb53b54
ValidatorProvider
=================
Validator
Service
Provider
=================
=======
The *ValidatorProvider* provides a service for validating data. It is
most useful when used with the *FormProvider*, but can also be used
The *Validator
Service
Provider* provides a service for validating data. It is
most useful when used with the *Form
Service
Provider*, but can also be used
standalone.
Parameters
...
...
@@ -35,7 +35,7 @@ Registering
Make sure you place a copy of the Symfony2 Validator component in
``vendor/symfony/src``. You can simply clone the whole Symfony2 into vendor::
$app->register(new Silex\Provider\ValidatorProvider(), array(
$app->register(new Silex\Provider\Validator
Service
Provider(), array(
'validator.class_path' => __DIR__.'/vendor/symfony/src',
));
...
...
@@ -93,7 +93,7 @@ getters::
});
You will have to handle the display of these violations yourself. You can
however use the *Form
Provider* which can make use of the *Validator
Provider*.
however use the *Form
ServiceProvider* which can make use of the *ValidatorService
Provider*.
For more information, consult the `Symfony2 Validation documentation
<http://symfony.com/doc/2.0/book/validation.html>`_.
src/Silex/Provider/DoctrineProvider.php
→
src/Silex/Provider/Doctrine
Service
Provider.php
View file @
9eb53b54
...
...
@@ -22,7 +22,7 @@ use Doctrine\Common\EventManager;
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class
DoctrineProvider
implements
ServiceProviderInterface
class
Doctrine
Service
Provider
implements
ServiceProviderInterface
{
public
function
register
(
Application
$app
)
{
...
...
src/Silex/Provider/FormProvider.php
→
src/Silex/Provider/Form
Service
Provider.php
View file @
9eb53b54
...
...
@@ -25,7 +25,7 @@ use Symfony\Component\Form\Extension\Csrf\CsrfExtension;
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class
FormProvider
implements
ServiceProviderInterface
class
Form
Service
Provider
implements
ServiceProviderInterface
{
public
function
register
(
Application
$app
)
{
...
...
src/Silex/Provider/HttpCacheProvider.php
→
src/Silex/Provider/HttpCache
Service
Provider.php
View file @
9eb53b54
...
...
@@ -22,7 +22,7 @@ use Symfony\Component\HttpKernel\HttpCache\Store;
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class
HttpCacheProvider
implements
ServiceProviderInterface
class
HttpCache
Service
Provider
implements
ServiceProviderInterface
{
public
function
register
(
Application
$app
)
{
...
...
src/Silex/Provider/MonologProvider.php
→
src/Silex/Provider/Monolog
Service
Provider.php
View file @
9eb53b54
...
...
@@ -24,7 +24,7 @@ use Symfony\Component\HttpKernel\Exception\HttpException;
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class
MonologProvider
implements
ServiceProviderInterface
class
Monolog
Service
Provider
implements
ServiceProviderInterface
{
public
function
register
(
Application
$app
)
{
...
...
src/Silex/Provider/SessionProvider.php
→
src/Silex/Provider/Session
Service
Provider.php
View file @
9eb53b54
...
...
@@ -23,7 +23,7 @@ use Symfony\Component\HttpKernel\KernelEvents;
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class
SessionProvider
implements
ServiceProviderInterface
class
Session
Service
Provider
implements
ServiceProviderInterface
{
private
$app
;
...
...
src/Silex/Provider/SwiftmailerProvider.php
→
src/Silex/Provider/Swiftmailer
Service
Provider.php
View file @
9eb53b54
...
...
@@ -19,7 +19,7 @@ use Silex\ServiceProviderInterface;
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class
SwiftmailerProvider
implements
ServiceProviderInterface
class
Swiftmailer
Service
Provider
implements
ServiceProviderInterface
{
public
function
register
(
Application
$app
)
{
...
...
src/Silex/Provider/SymfonyBridgesProvider.php
→
src/Silex/Provider/SymfonyBridges
Service
Provider.php
View file @
9eb53b54
...
...
@@ -19,7 +19,7 @@ use Silex\ServiceProviderInterface;
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class
SymfonyBridgesProvider
implements
ServiceProviderInterface
class
SymfonyBridges
Service
Provider
implements
ServiceProviderInterface
{
public
function
register
(
Application
$app
)
{
...
...
src/Silex/Provider/TranslationProvider.php
→
src/Silex/Provider/Translation
Service
Provider.php
View file @
9eb53b54
...
...
@@ -23,7 +23,7 @@ use Symfony\Component\Translation\Loader\ArrayLoader;
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class
TranslationProvider
implements
ServiceProviderInterface
class
Translation
Service
Provider
implements
ServiceProviderInterface
{
public
function
register
(
Application
$app
)
{
...
...
src/Silex/Provider/TwigProvider.php
→
src/Silex/Provider/Twig
Service
Provider.php
View file @
9eb53b54
...
...
@@ -23,7 +23,7 @@ use Symfony\Bridge\Twig\Extension\FormExtension as TwigFormExtension;
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class
TwigProvider
implements
ServiceProviderInterface
class
Twig
Service
Provider
implements
ServiceProviderInterface
{
public
function
register
(
Application
$app
)
{
...
...
src/Silex/Provider/UrlGeneratorProvider.php
→
src/Silex/Provider/UrlGenerator
Service
Provider.php
View file @
9eb53b54
...
...
@@ -21,7 +21,7 @@ use Symfony\Component\Routing\Generator\UrlGenerator;
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class
UrlGeneratorProvider
implements
ServiceProviderInterface
class
UrlGenerator
Service
Provider
implements
ServiceProviderInterface
{
public
function
register
(
Application
$app
)
{
...
...
src/Silex/Provider/ValidatorProvider.php
→
src/Silex/Provider/Validator
Service
Provider.php
View file @
9eb53b54
...
...
@@ -24,7 +24,7 @@ use Symfony\Component\Validator\ConstraintValidatorFactory;
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class
ValidatorProvider
implements
ServiceProviderInterface
class
Validator
Service
Provider
implements
ServiceProviderInterface
{
public
function
register
(
Application
$app
)
{
...
...
tests/Silex/Tests/Provider/DoctrineProviderTest.php
→
tests/Silex/Tests/Provider/Doctrine
Service
ProviderTest.php
View file @
9eb53b54
...
...
@@ -12,14 +12,14 @@
namespace
Silex\Tests\Provider
;
use
Silex\Application
;
use
Silex\Provider\DoctrineProvider
;
use
Silex\Provider\Doctrine
Service
Provider
;
/**
* DoctrineProvider test cases.
*
* Fabien Potencier <fabien@symfony.com>
*/
class
DoctrineProviderTest
extends
\PHPUnit_Framework_TestCase
class
Doctrine
Service
ProviderTest
extends
\PHPUnit_Framework_TestCase
{
public
function
setUp
()
{
...
...
@@ -31,7 +31,7 @@ class DoctrineProviderTest extends \PHPUnit_Framework_TestCase
public
function
testSingleConnection
()
{
$app
=
new
Application
();
$app
->
register
(
new
DoctrineProvider
(),
array
(
$app
->
register
(
new
Doctrine
Service
Provider
(),
array
(
'db.common.class_path'
=>
__DIR__
.
'/../../../../vendor/doctrine-common/lib'
,
'db.dbal.class_path'
=>
__DIR__
.
'/../../../../vendor/doctrine-dbal/lib'
,
...
...
@@ -51,7 +51,7 @@ class DoctrineProviderTest extends \PHPUnit_Framework_TestCase
public
function
testMultipleConnections
()
{
$app
=
new
Application
();
$app
->
register
(
new
DoctrineProvider
(),
array
(
$app
->
register
(
new
Doctrine
Service
Provider
(),
array
(
'db.common.class_path'
=>
__DIR__
.
'/../../../../vendor/doctrine-common/lib'
,
'db.dbal.class_path'
=>
__DIR__
.
'/../../../../vendor/doctrine-dbal/lib'
,
...
...
tests/Silex/Tests/Provider/MonologProviderTest.php
→
tests/Silex/Tests/Provider/Monolog
Service
ProviderTest.php
View file @
9eb53b54
...
...
@@ -14,7 +14,7 @@ namespace Silex\Tests\Provider;
use
Monolog\Handler\TestHandler
;
use
Silex\Application
;
use
Silex\Provider\MonologProvider
;
use
Silex\Provider\Monolog
Service
Provider
;
use
Symfony\Component\HttpFoundation\Request
;
...
...
@@ -23,7 +23,7 @@ use Symfony\Component\HttpFoundation\Request;
*
* @author Igor Wiedler <igor@wiedler.ch>
*/
class
MonologProviderTest
extends
\PHPUnit_Framework_TestCase
class
Monolog
Service
ProviderTest
extends
\PHPUnit_Framework_TestCase
{
public
function
setUp
()
{
...
...
@@ -36,7 +36,7 @@ class MonologProviderTest extends \PHPUnit_Framework_TestCase
{
$app
=
new
Application
();
$app
->
register
(
new
MonologProvider
(),
array
(
$app
->
register
(
new
Monolog
Service
Provider
(),
array
(
'monolog.class_path'
=>
__DIR__
.
'/../../../../vendor/monolog/src'
,
));
...
...
tests/Silex/Tests/Provider/SessionProviderTest.php
→
tests/Silex/Tests/Provider/Session
Service
ProviderTest.php
View file @
9eb53b54
...
...
@@ -12,7 +12,7 @@
namespace
Silex\Tests\Provider
;
use
Silex\Application
;
use
Silex\Provider\SessionProvider
;
use
Silex\Provider\Session
Service
Provider
;
use
Symfony\Component\HttpFoundation\Request
;
use
Symfony\Component\HttpFoundation\SessionStorage\ArraySessionStorage
;
...
...
@@ -22,13 +22,13 @@ use Symfony\Component\HttpFoundation\SessionStorage\ArraySessionStorage;
*
* @author Igor Wiedler <igor@wiedler.ch>
*/
class
SessionProviderTest
extends
\PHPUnit_Framework_TestCase
class
Session
Service
ProviderTest
extends
\PHPUnit_Framework_TestCase
{
public
function
testRegister
()
{
$app
=
new
Application
();
$app
->
register
(
new
SessionProvider
());
$app
->
register
(
new
Session
Service
Provider
());
$app
[
'session.storage'
]
=
$app
->
share
(
function
()
use
(
$app
)
{
return
new
ArraySessionStorage
();
...
...
tests/Silex/Tests/Provider/TwigProviderTest.php
→
tests/Silex/Tests/Provider/Twig
Service
ProviderTest.php
View file @
9eb53b54
...
...
@@ -12,7 +12,7 @@
namespace
Silex\Tests\Provider
;
use
Silex\Application
;
use
Silex\Provider\TwigProvider
;
use
Silex\Provider\Twig
Service
Provider
;
use
Symfony\Component\HttpFoundation\Request
;
...
...
@@ -21,7 +21,7 @@ use Symfony\Component\HttpFoundation\Request;
*
* @author Igor Wiedler <igor@wiedler.ch>
*/
class
TwigProviderTest
extends
\PHPUnit_Framework_TestCase
class
Twig
Service
ProviderTest
extends
\PHPUnit_Framework_TestCase
{
public
function
setUp
()
{
...
...
@@ -34,7 +34,7 @@ class TwigProviderTest extends \PHPUnit_Framework_TestCase
{
$app
=
new
Application
();
$app
->
register
(
new
TwigProvider
(),
array
(
$app
->
register
(
new
Twig
Service
Provider
(),
array
(
'twig.templates'
=>
array
(
'hello'
=>
'Hello {{ name }}!'
),
'twig.class_path'
=>
__DIR__
.
'/../../../../vendor/twig/lib'
,
));
...
...
tests/Silex/Tests/Provider/UrlGeneratorProviderTest.php
→
tests/Silex/Tests/Provider/UrlGenerator
Service
ProviderTest.php
View file @
9eb53b54
...
...
@@ -12,7 +12,7 @@
namespace
Silex\Tests\Provider
;
use
Silex\Application
;
use
Silex\Provider\UrlGeneratorProvider
;
use
Silex\Provider\UrlGenerator
Service
Provider
;
use
Symfony\Component\HttpFoundation\Request
;
...
...
@@ -21,13 +21,13 @@ use Symfony\Component\HttpFoundation\Request;
*
* @author Igor Wiedler <igor@wiedler.ch>
*/
class
UrlGeneratorProviderTest
extends
\PHPUnit_Framework_TestCase
class
UrlGenerator
Service
ProviderTest
extends
\PHPUnit_Framework_TestCase
{
public
function
testRegister
()
{
$app
=
new
Application
();
$app
->
register
(
new
UrlGeneratorProvider
());
$app
->
register
(
new
UrlGenerator
Service
Provider
());
$app
->
get
(
'/hello/{name}'
,
function
(
$name
)
{})
->
bind
(
'hello'
);
...
...
@@ -44,7 +44,7 @@ class UrlGeneratorProviderTest extends \PHPUnit_Framework_TestCase
{
$app
=
new
Application
();
$app
->
register
(
new
UrlGeneratorProvider
());
$app
->
register
(
new
UrlGenerator
Service
Provider
());
$app
->
get
(
'/hello/{name}'
,
function
(
$name
)
{})
->
bind
(
'hello'
);
...
...
@@ -63,7 +63,7 @@ class UrlGeneratorProviderTest extends \PHPUnit_Framework_TestCase
{
$app
=
new
Application
();
$app
->
register
(
new
UrlGeneratorProvider
());
$app
->
register
(
new
UrlGenerator
Service
Provider
());
$app
->
get
(
'/hello/{name}'
,
function
(
$name
)
{})
->
bind
(
'hello'
);
...
...
@@ -82,7 +82,7 @@ class UrlGeneratorProviderTest extends \PHPUnit_Framework_TestCase
{
$app
=
new
Application
();
$app
->
register
(
new
UrlGeneratorProvider
());
$app
->
register
(
new
UrlGenerator
Service
Provider
());
$app
->
get
(
'/insecure'
,
function
()
{})
->
bind
(
'insecure_page'
)
...
...
@@ -102,7 +102,7 @@ class UrlGeneratorProviderTest extends \PHPUnit_Framework_TestCase
{
$app
=
new
Application
();
$app
->
register
(
new
UrlGeneratorProvider
());
$app
->
register
(
new
UrlGenerator
Service
Provider
());
$app
->
get
(
'/secure'
,
function
()
{})
->
bind
(
'secure_page'
)
...
...
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