diff options
author | VirtualTam <virtualtam@flibidi.net> | 2017-03-03 23:06:12 +0100 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.net> | 2017-03-04 17:07:52 +0100 |
commit | 3c66e56435359dc678048193e8ee239d06f79b64 (patch) | |
tree | 38a4be4a9d9babc193683feec412ac008ca9a169 /index.php | |
parent | 74198dcdf65ee3dd83cbe5b6a8a85bc386a62063 (diff) | |
download | Shaarli-3c66e56435359dc678048193e8ee239d06f79b64.tar.gz Shaarli-3c66e56435359dc678048193e8ee239d06f79b64.tar.zst Shaarli-3c66e56435359dc678048193e8ee239d06f79b64.zip |
application: introduce the Shaarli\Config namespace
Namespaces have been introduced with the REST API, and should be generalized
to the whole codebase to manage object scope and benefit from autoloading.
See:
- https://secure.php.net/manual/en/language.namespaces.php
- http://www.php-fig.org/psr/psr-4/
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -62,8 +62,6 @@ require_once __DIR__ . '/vendor/autoload.php'; | |||
62 | require_once 'application/ApplicationUtils.php'; | 62 | require_once 'application/ApplicationUtils.php'; |
63 | require_once 'application/Cache.php'; | 63 | require_once 'application/Cache.php'; |
64 | require_once 'application/CachedPage.php'; | 64 | require_once 'application/CachedPage.php'; |
65 | require_once 'application/config/ConfigManager.php'; | ||
66 | require_once 'application/config/ConfigPlugin.php'; | ||
67 | require_once 'application/FeedBuilder.php'; | 65 | require_once 'application/FeedBuilder.php'; |
68 | require_once 'application/FileUtils.php'; | 66 | require_once 'application/FileUtils.php'; |
69 | require_once 'application/HttpUtils.php'; | 67 | require_once 'application/HttpUtils.php'; |
@@ -80,6 +78,7 @@ require_once 'application/PluginManager.php'; | |||
80 | require_once 'application/Router.php'; | 78 | require_once 'application/Router.php'; |
81 | require_once 'application/Updater.php'; | 79 | require_once 'application/Updater.php'; |
82 | use \Shaarli\ThemeUtils; | 80 | use \Shaarli\ThemeUtils; |
81 | use \Shaarli\Config\ConfigManager; | ||
83 | 82 | ||
84 | // Ensure the PHP version is supported | 83 | // Ensure the PHP version is supported |
85 | try { | 84 | try { |