diff --git a/developer_manual/app/classloader.rst b/developer_manual/app/classloader.rst index ed009eb7b..489bb5179 100644 --- a/developer_manual/app/classloader.rst +++ b/developer_manual/app/classloader.rst @@ -1,8 +1,8 @@ +.. _appclassloader: + =========== Classloader =========== - -.. app_classloader: .. sectionauthor:: Bernhard Posselt The classloader is provided by Nextcloud and loads all your classes automatically. The only thing left to include by yourself are 3rdparty libraries. Those should be loaded in :file:`lib/AppInfo/Application.php`. diff --git a/developer_manual/app/requests/controllers.rst b/developer_manual/app/requests/controllers.rst index 502375e1d..2e8f4c034 100644 --- a/developer_manual/app/requests/controllers.rst +++ b/developer_manual/app/requests/controllers.rst @@ -28,7 +28,7 @@ To create a controller, simply extend the Controller class and create a method t Connecting a controller and a route ----------------------------------- -If you use a proper namespace for your app (see :ref:`app_classloader`) Nextcloud +If you use a proper namespace for your app (see :ref:`appclassloader`) Nextcloud will resolve your controller and its dependencies automatically. An example route name would look like this::