Use Composer's PSR-0 autoloader
4 files modified
2 files renamed
| | |
| | | { |
| | | "autoload": { |
| | | "psr-0": { |
| | | "": "lib/" |
| | | } |
| | | }, |
| | | "require": { |
| | | "google/gtfs-realtime-bindings": "^0.0.2", |
| | | "monolog/monolog": "^1.24", |
| | |
| | | <?php |
| | | require_once(__DIR__.'/FtpConnection.php'); |
| | | |
| | | function ftp_fetch_if_newer($url, $file = NULL) { |
| | | $url = parse_url($url); |
| | | if(!isset($url['scheme']) || $url['scheme'] != 'ftp') { |
| | |
| | | <?php |
| | | require_once(__DIR__.'/vendor/autoload.php'); |
| | | require_once(__DIR__.'/lib/database.php'); |
| | | require_once(__DIR__.'/lib/fetch.php'); |
| | | require_once(__DIR__.'/lib/mapper.php'); |
| | | require_once(__DIR__.'/lib/output.php'); |
| | | require_once(__DIR__.'/lib/vehicle_types.php'); |
| | | require_once(__DIR__.'/config.php'); |
| | |
| | | <?php |
| | | require_once(__DIR__.'/vendor/autoload.php'); |
| | | require_once(__DIR__.'/lib/database.php'); |
| | | require_once(__DIR__.'/lib/output.php'); |
| | | require_once(__DIR__.'/lib/vehicle_types.php'); |
| | | require_once(__DIR__.'/config.php'); |