Introduce PSR-4 autoloading

This commit is contained in:
Sobak
2016-07-21 17:09:48 +02:00
parent 62dafbe8dd
commit 54f96b9938
48 changed files with 342 additions and 238 deletions

View File

@@ -10,6 +10,11 @@
* @version 0.22
*/
namespace PrivateBin;
use Exception;
use PrivateBin\i18n;
/**
* filter
*
@@ -28,7 +33,7 @@ class filter
public static function stripslashes_deep($value)
{
return is_array($value) ?
array_map('filter::stripslashes_deep', $value) :
array_map('PrivateBin\\filter::stripslashes_deep', $value) :
stripslashes($value);
}