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

@@ -1,4 +1,7 @@
<?php
use PrivateBin\serversalt;
error_reporting( E_ALL | E_STRICT );
// change this, if your php files and data is outside of your webservers document root
@@ -7,7 +10,7 @@ if (!defined('PATH')) define('PATH', '..' . DIRECTORY_SEPARATOR);
if (!defined('CONF')) define('CONF', PATH . 'cfg' . DIRECTORY_SEPARATOR . 'conf.ini');
if (!is_file(CONF)) copy(CONF . '.sample', CONF);
require PATH . 'lib/auto.php';
require PATH . 'vendor/autoload.php';
class helper
{