From d054f09af714bf545f90f7c276320f66e8ff9165 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Mon, 12 May 2014 01:13:06 +0200 Subject: [PATCH] fix links --- developer_manual/app/classloader.rst | 1 + developer_manual/app/filesystem.rst | 1 + developer_manual/app/filesystembackend.rst | 1 + developer_manual/app/hooks.rst | 1 + developer_manual/app/main.rst | 3 ++- developer_manual/app/request.rst | 13 +++++++------ developer_manual/app/schema.rst | 1 + developer_manual/app/testing.rst | 1 + developer_manual/app/tutorial.rst | 1 + developer_manual/app/userbackend.rst | 1 + developer_manual/app/users.rst | 1 + 11 files changed, 18 insertions(+), 7 deletions(-) diff --git a/developer_manual/app/classloader.rst b/developer_manual/app/classloader.rst index 9cbbf5bae..450a8145e 100644 --- a/developer_manual/app/classloader.rst +++ b/developer_manual/app/classloader.rst @@ -1,3 +1,4 @@ +=========== Classloader =========== diff --git a/developer_manual/app/filesystem.rst b/developer_manual/app/filesystem.rst index b2d8afd71..39b97e7e7 100644 --- a/developer_manual/app/filesystem.rst +++ b/developer_manual/app/filesystem.rst @@ -1,3 +1,4 @@ +========== Filesystem ========== diff --git a/developer_manual/app/filesystembackend.rst b/developer_manual/app/filesystembackend.rst index 00bac247b..421d67c27 100644 --- a/developer_manual/app/filesystembackend.rst +++ b/developer_manual/app/filesystembackend.rst @@ -1,3 +1,4 @@ +=================== Filesystem Backends =================== diff --git a/developer_manual/app/hooks.rst b/developer_manual/app/hooks.rst index a1b90f7b9..e4f2a352d 100644 --- a/developer_manual/app/hooks.rst +++ b/developer_manual/app/hooks.rst @@ -1,3 +1,4 @@ +===== Hooks ===== diff --git a/developer_manual/app/main.rst b/developer_manual/app/main.rst index bcf8ab072..0c2e4cbd2 100644 --- a/developer_manual/app/main.rst +++ b/developer_manual/app/main.rst @@ -1,3 +1,4 @@ +==================================== Navigation and Pre-App configuration ==================================== @@ -37,7 +38,7 @@ The :file:`appinfo/app.php` is the first file that is loaded and executed in own \OCP\Util::connectHook('OC_User', 'pre_deleteUser', 'OCA\MyApp\Hooks\User', 'deleteUser'); -It is also possible to include :doc:`javascript` or :doc:`css` for other apps by placing the **addScript** or **addStyle** functions inside this file. +It is also possible to include :doc:`js` or :doc:`css` for other apps by placing the **addScript** or **addStyle** functions inside this file. .. code-block:: php diff --git a/developer_manual/app/request.rst b/developer_manual/app/request.rst index f10f4670c..33d980838 100644 --- a/developer_manual/app/request.rst +++ b/developer_manual/app/request.rst @@ -1,3 +1,4 @@ +================= Request lifecycle ================= @@ -13,7 +14,7 @@ A typical HTTP request consists of the following: The following sections will present an overview over how that request is being processed to provide an in depth view over how ownCloud works. If you are not interested in the internals or don't want to execute anything before and after your controller, feel free to skip this section and continue directly with defining :doc:`your app's routes `. Front controller ----------------- +================ In the beginning, all requests are sent to ownCloud's :file:`index.php` which in turn executes :file:`lib/base.php`. This file inspects the HTTP headers and abstracts away differences between different webservers and initializes the basic classes. Afterwards the basic apps are being loaded in the following order: * Authentication backends @@ -30,11 +31,11 @@ Afterwards the following steps are performed: * Execute the router Router ------- +====== The router parses the :doc:`app's routing files ` (:file:`appinfo/routes.php`), inspects the request's **method** and **url**, queries the controller from the :doc:`container` and then passes control to the dispatcher. The dispatcher is responsible for running the hooks (called Middleware) before and after the controller, executing the controller method and rendering the output. Middleware ----------- +========== A :doc:`Middleware ` is a convenient way to execute common tasks such as custom authentication before or after a :doc:`controller method ` is being run. You can execute code at the following locations: * before the call of the controller method @@ -43,11 +44,11 @@ A :doc:`Middleware ` is a convenient way to execute common tasks suc * before the output is rendered Container ---------- -The :doc:`container` is the place where you define all of your classes and in particular all of your controllers. The container is responsible for assembling all of your objects (newing your classes) that should only have one single instance without relying on globals or singletons. If you want to know more about why you should use it and what the benefits are, read up on the topic :doc:`../general/dependencyinjection` +========= +The :doc:`container` is the place where you define all of your classes and in particular all of your controllers. The container is responsible for assembling all of your objects (newing your classes) that should only have one single instance without relying on globals or singletons. If you want to know more about why you should use it and what the benefits are, read up on the topic in :doc:`container`. Controller ----------- +========== The :doc:`controller ` contains the code that you actually want to run after a request has come in. Think of it like a callback that is executed if everything before went fine. diff --git a/developer_manual/app/schema.rst b/developer_manual/app/schema.rst index 185f2eaaf..f61470614 100644 --- a/developer_manual/app/schema.rst +++ b/developer_manual/app/schema.rst @@ -1,3 +1,4 @@ +=============== Database Schema =============== diff --git a/developer_manual/app/testing.rst b/developer_manual/app/testing.rst index c3fcd967b..9ad6748c4 100644 --- a/developer_manual/app/testing.rst +++ b/developer_manual/app/testing.rst @@ -1,3 +1,4 @@ +======= Testing ======= diff --git a/developer_manual/app/tutorial.rst b/developer_manual/app/tutorial.rst index 55c830c89..854a1deca 100644 --- a/developer_manual/app/tutorial.rst +++ b/developer_manual/app/tutorial.rst @@ -1,3 +1,4 @@ +======== Tutorial ======== diff --git a/developer_manual/app/userbackend.rst b/developer_manual/app/userbackend.rst index 2ea161109..aa5dec753 100644 --- a/developer_manual/app/userbackend.rst +++ b/developer_manual/app/userbackend.rst @@ -1,3 +1,4 @@ +============= User backends ============= diff --git a/developer_manual/app/users.rst b/developer_manual/app/users.rst index a729cefa8..304b5901f 100644 --- a/developer_manual/app/users.rst +++ b/developer_manual/app/users.rst @@ -1,3 +1,4 @@ +========================= User & Session Management =========================