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>
This commit is contained in:
VirtualTam 2017-03-03 23:06:12 +01:00
parent 74198dcdf6
commit 3c66e56435
26 changed files with 62 additions and 47 deletions

View file

@ -1,4 +1,5 @@
<?php
use Shaarli\Config\ConfigManager;
require_once 'plugins/isso/isso.php';

View file

@ -1,4 +1,5 @@
<?php
use Shaarli\Config\ConfigManager;
/**
* PluginMarkdownTest.php

View file

@ -1,4 +1,5 @@
<?php
use Shaarli\Config\ConfigManager;
require_once 'plugins/pubsubhubbub/pubsubhubbub.php';
require_once 'application/Router.php';

View file

@ -1,5 +1,4 @@
<?php
/**
* PluginQrcodeTest.php
*/

View file

@ -1,4 +1,5 @@
<?php
use Shaarli\Config\ConfigManager;
/**
* PluginReadityourselfTest.php.php

View file

@ -1,4 +1,5 @@
<?php
use Shaarli\Config\ConfigManager;
/**
* PluginWallabagTest.php.php