[RssBridge] Include interfaces once

This commit is contained in:
logmanoriginal 2018-11-06 19:23:32 +01:00
parent 95bd206e9d
commit 4b7fea5ebc
7 changed files with 11 additions and 6 deletions

View file

@ -1,5 +1,5 @@
<?php
require_once(__DIR__ . '/BridgeInterface.php');
class Bridge {
static protected $dirBridge;

View file

@ -1,5 +1,5 @@
<?php
require_once(__DIR__ . '/BridgeInterface.php');
abstract class BridgeAbstract implements BridgeInterface {
const NAME = 'Unnamed bridge';

View file

@ -1,5 +1,5 @@
<?php
require_once(__DIR__ . '/CacheInterface.php');
class Cache {
static protected $dirCache;

View file

@ -1,5 +1,5 @@
<?php
require_once(__DIR__ . '/BridgeInterface.php');
abstract class FeedExpander extends BridgeAbstract {
private $name;

View file

@ -1,5 +1,5 @@
<?php
require_once(__DIR__ . '/FormatInterface.php');
class Format {
static protected $dirFormat;

View file

@ -1,5 +1,5 @@
<?php
require_once(__DIR__ . '/FormatInterface.php');
abstract class FormatAbstract implements FormatInterface {
const DEFAULT_CHARSET = 'UTF-8';

View file

@ -8,6 +8,11 @@ define('PATH_LIB_CACHES', __DIR__ . '/../caches/'); // Path to caches library
define('PATH_CACHE', __DIR__ . '/../cache'); // Path to cache folder
define('REPOSITORY', 'https://github.com/RSS-Bridge/rss-bridge/');
// Interfaces
require_once PATH_LIB . 'BridgeInterface.php';
require_once PATH_LIB . 'CacheInterface.php';
require_once PATH_LIB . 'FormatInterface.php';
// Classes
require_once PATH_LIB . 'Exceptions.php';
require_once PATH_LIB . 'Format.php';