mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 02:09:45 +07:00
@@ -1,8 +1,8 @@
|
||||
.. _appclassloader:
|
||||
|
||||
===========
|
||||
Classloader
|
||||
===========
|
||||
|
||||
.. app_classloader:
|
||||
.. sectionauthor:: Bernhard Posselt <dev@bernhard-posselt.com>
|
||||
|
||||
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`.
|
||||
|
||||
@@ -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::
|
||||
|
||||
Reference in New Issue
Block a user