[RssBridge] Include interfaces once
This commit is contained in:
parent
95bd206e9d
commit
4b7fea5ebc
7 changed files with 11 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
require_once(__DIR__ . '/BridgeInterface.php');
|
||||
|
||||
class Bridge {
|
||||
|
||||
static protected $dirBridge;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
require_once(__DIR__ . '/BridgeInterface.php');
|
||||
|
||||
abstract class BridgeAbstract implements BridgeInterface {
|
||||
|
||||
const NAME = 'Unnamed bridge';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
require_once(__DIR__ . '/CacheInterface.php');
|
||||
|
||||
class Cache {
|
||||
|
||||
static protected $dirCache;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
require_once(__DIR__ . '/BridgeInterface.php');
|
||||
|
||||
abstract class FeedExpander extends BridgeAbstract {
|
||||
|
||||
private $name;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
require_once(__DIR__ . '/FormatInterface.php');
|
||||
|
||||
class Format {
|
||||
|
||||
static protected $dirFormat;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
require_once(__DIR__ . '/FormatInterface.php');
|
||||
|
||||
abstract class FormatAbstract implements FormatInterface {
|
||||
const DEFAULT_CHARSET = 'UTF-8';
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue