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
ae9d5b2f
Commit
ae9d5b2f
authored
May 25, 2016
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed typo
parent
163be526
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
doc/providers.rst
doc/providers.rst
+3
-3
No files found.
doc/providers.rst
View file @
ae9d5b2f
...
...
@@ -96,11 +96,11 @@ application which then may make use of other services and parameters.
and Silex work, but may allow your provider to be used outside of Silex.
Optionally, your service provider can implement the
``Silex\Api\Bootable
ServiceProviderInterface``. A BootableServiceP
rovider must
``Silex\Api\Bootable
ProviderInterface``. A bootable p
rovider must
implement the ``boot()`` method, with which you can configure the application, just
before it handles a request::
interface Bootable
Service
ProviderInterface
interface BootableProviderInterface
{
function boot(Application $app);
}
...
...
@@ -127,7 +127,7 @@ Here is an example of such a provider::
use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
class HelloServiceProvider implements ServiceProviderInterface, Bootable
Service
ProviderInterface, EventListenerProviderInterface
class HelloServiceProvider implements ServiceProviderInterface, BootableProviderInterface, EventListenerProviderInterface
{
public function register(Container $app)
{
...
...
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