[Pkg-owncloud-commits] [owncloud-doc] 60/270: indention fixes
David Prévot
taffit at moszumanska.debian.org
Thu Jul 31 03:53:01 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud-doc.
commit 6ca10d6e86cae124f76ff9e29b77cdcd48606cd7
Author: Bernhard Posselt <dev at bernhard-posselt.com>
Date: Sun May 11 16:52:38 2014 +0200
indention fixes
---
developer_manual/app/middleware.rst | 65 ++++++++++++++++++++-----------------
1 file changed, 35 insertions(+), 30 deletions(-)
diff --git a/developer_manual/app/middleware.rst b/developer_manual/app/middleware.rst
index e85ea4d..b145707 100644
--- a/developer_manual/app/middleware.rst
+++ b/developer_manual/app/middleware.rst
@@ -49,23 +49,26 @@ The middleware can be registered in the :doc:`container` and added using the **r
class MyApp extends App {
- /**
- * Define your dependencies in here
- */
- public function __construct(array $urlParams=array()){
- parent::__construct('myapp', $urlParams);
-
- $container = $this->getContainer();
-
/**
- * Middleware
+ * Define your dependencies in here
*/
- $container->registerService('CensorMiddleware', function($c){
- return new CensorMiddleware();
- });
-
- // executed in the order that it is registered
- $this->registerMiddleware('CensorMiddleware');
+ public function __construct(array $urlParams=array()){
+ parent::__construct('myapp', $urlParams);
+
+ $container = $this->getContainer();
+
+ /**
+ * Middleware
+ */
+ $container->registerService('CensorMiddleware', function($c){
+ return new CensorMiddleware();
+ });
+
+ // executed in the order that it is registered
+ $this->registerMiddleware('CensorMiddleware');
+
+ }
+ }
.. note::
@@ -121,21 +124,23 @@ Now adjust the container to inject the reflector:
class MyApp extends App {
-
- /**
- * Define your dependencies in here
- */
- public function __construct(array $urlParams=array()){
- parent::__construct('myapp', $urlParams);
-
- $container = $this->getContainer();
-
/**
- * Middleware
+ * Define your dependencies in here
*/
- $container->registerService('HeaderMiddleware', function($c){
- return new HeaderMiddleware($c->query('ControllerMethodReflector'));
- });
+ public function __construct(array $urlParams=array()){
+ parent::__construct('myapp', $urlParams);
+
+ $container = $this->getContainer();
+
+ /**
+ * Middleware
+ */
+ $container->registerService('HeaderMiddleware', function($c){
+ return new HeaderMiddleware($c->query('ControllerMethodReflector'));
+ });
+
+ // executed in the order that it is registered
+ $this->registerMiddleware('HeaderMiddleware');
+ }
- // executed in the order that it is registered
- $this->registerMiddleware('HeaderMiddleware');
\ No newline at end of file
+ }
\ No newline at end of file
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-doc.git
More information about the Pkg-owncloud-commits
mailing list