[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
|
<?php
|
||||||
require_once(__DIR__ . '/BridgeInterface.php');
|
|
||||||
class Bridge {
|
class Bridge {
|
||||||
|
|
||||||
static protected $dirBridge;
|
static protected $dirBridge;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
require_once(__DIR__ . '/BridgeInterface.php');
|
|
||||||
abstract class BridgeAbstract implements BridgeInterface {
|
abstract class BridgeAbstract implements BridgeInterface {
|
||||||
|
|
||||||
const NAME = 'Unnamed bridge';
|
const NAME = 'Unnamed bridge';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
require_once(__DIR__ . '/CacheInterface.php');
|
|
||||||
class Cache {
|
class Cache {
|
||||||
|
|
||||||
static protected $dirCache;
|
static protected $dirCache;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
require_once(__DIR__ . '/BridgeInterface.php');
|
|
||||||
abstract class FeedExpander extends BridgeAbstract {
|
abstract class FeedExpander extends BridgeAbstract {
|
||||||
|
|
||||||
private $name;
|
private $name;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
require_once(__DIR__ . '/FormatInterface.php');
|
|
||||||
class Format {
|
class Format {
|
||||||
|
|
||||||
static protected $dirFormat;
|
static protected $dirFormat;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
require_once(__DIR__ . '/FormatInterface.php');
|
|
||||||
abstract class FormatAbstract implements FormatInterface {
|
abstract class FormatAbstract implements FormatInterface {
|
||||||
const DEFAULT_CHARSET = 'UTF-8';
|
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('PATH_CACHE', __DIR__ . '/../cache'); // Path to cache folder
|
||||||
define('REPOSITORY', 'https://github.com/RSS-Bridge/rss-bridge/');
|
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
|
// Classes
|
||||||
require_once PATH_LIB . 'Exceptions.php';
|
require_once PATH_LIB . 'Exceptions.php';
|
||||||
require_once PATH_LIB . 'Format.php';
|
require_once PATH_LIB . 'Format.php';
|
||||||
|
|
Loading…
Reference in a new issue