Skip to content

Commit

Permalink
Revert "refactor: remove unnecesary includes" (#2723)
Browse files Browse the repository at this point in the history
This reverts commit fd449be.
  • Loading branch information
yamanq authored May 12, 2022
1 parent 97b5138 commit bb6d553
Show file tree
Hide file tree
Showing 17 changed files with 42 additions and 1 deletion.
1 change: 1 addition & 0 deletions bridges/BooruprojectBridge.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
require_once('DanbooruBridge.php');

class BooruprojectBridge extends DanbooruBridge {

Expand Down
2 changes: 1 addition & 1 deletion bridges/GithubPullRequestBridge.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

require_once('GithubIssueBridge.php');
class GitHubPullRequestBridge extends GithubIssueBridge {
const MAINTAINER = 'Yaman Qalieh';
const NAME = 'GitHub Pull Request';
Expand Down
1 change: 1 addition & 0 deletions bridges/HotUKDealsBridge.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

require_once(__DIR__ . '/DealabsBridge.php');
class HotUKDealsBridge extends PepperBridgeAbstract {

const NAME = 'HotUKDeals bridge';
Expand Down
1 change: 1 addition & 0 deletions bridges/KonachanBridge.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
require_once('MoebooruBridge.php');

class KonachanBridge extends MoebooruBridge {

Expand Down
1 change: 1 addition & 0 deletions bridges/LolibooruBridge.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
require_once('MoebooruBridge.php');

class LolibooruBridge extends MoebooruBridge {

Expand Down
1 change: 1 addition & 0 deletions bridges/MilbooruBridge.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
require_once('Shimmie2Bridge.php');

class MilbooruBridge extends Shimmie2Bridge {

Expand Down
1 change: 1 addition & 0 deletions bridges/MspabooruBridge.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
require_once('GelbooruBridge.php');

class MspabooruBridge extends GelbooruBridge {

Expand Down
1 change: 1 addition & 0 deletions bridges/MydealsBridge.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

require_once(__DIR__ . '/DealabsBridge.php');
class MydealsBridge extends PepperBridgeAbstract {

const NAME = 'Mydeals bridge';
Expand Down
1 change: 1 addition & 0 deletions bridges/Rule34Bridge.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
require_once('GelbooruBridge.php');

class Rule34Bridge extends GelbooruBridge {

Expand Down
1 change: 1 addition & 0 deletions bridges/Rule34pahealBridge.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
require_once('Shimmie2Bridge.php');

class Rule34pahealBridge extends Shimmie2Bridge {

Expand Down
1 change: 1 addition & 0 deletions bridges/SafebooruBridge.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
require_once('GelbooruBridge.php');

class SafebooruBridge extends GelbooruBridge {

Expand Down
1 change: 1 addition & 0 deletions bridges/Shimmie2Bridge.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
require_once('DanbooruBridge.php');

class Shimmie2Bridge extends DanbooruBridge {

Expand Down
1 change: 1 addition & 0 deletions bridges/TbibBridge.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
require_once('GelbooruBridge.php');

class TbibBridge extends GelbooruBridge {

Expand Down
1 change: 1 addition & 0 deletions bridges/XbooruBridge.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
require_once('GelbooruBridge.php');

class XbooruBridge extends GelbooruBridge {

Expand Down
1 change: 1 addition & 0 deletions bridges/YandereBridge.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
require_once('MoebooruBridge.php');

class YandereBridge extends MoebooruBridge {

Expand Down
26 changes: 26 additions & 0 deletions lib/rssbridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,32 @@
/** URL to the RSS-Bridge repository */
define('REPOSITORY', 'https://github.com/RSS-Bridge/rss-bridge/');

// Interfaces
require_once PATH_LIB . 'ActionInterface.php';
require_once PATH_LIB . 'BridgeInterface.php';
require_once PATH_LIB . 'CacheInterface.php';
require_once PATH_LIB . 'FormatInterface.php';

// Classes
require_once PATH_LIB . 'FactoryAbstract.php';
require_once PATH_LIB . 'FeedItem.php';
require_once PATH_LIB . 'Debug.php';
require_once PATH_LIB . 'Exceptions.php';
require_once PATH_LIB . 'FormatFactory.php';
require_once PATH_LIB . 'FormatAbstract.php';
require_once PATH_LIB . 'BridgeFactory.php';
require_once PATH_LIB . 'BridgeAbstract.php';
require_once PATH_LIB . 'FeedExpander.php';
require_once PATH_LIB . 'CacheFactory.php';
require_once PATH_LIB . 'Authentication.php';
require_once PATH_LIB . 'Configuration.php';
require_once PATH_LIB . 'BridgeCard.php';
require_once PATH_LIB . 'BridgeList.php';
require_once PATH_LIB . 'ParameterValidator.php';
require_once PATH_LIB . 'ActionFactory.php';
require_once PATH_LIB . 'ActionAbstract.php';
require_once PATH_LIB . 'XPathAbstract.php';

// Functions
require_once PATH_LIB . 'html.php';
require_once PATH_LIB . 'error.php';
Expand Down
1 change: 1 addition & 0 deletions tests/JsonFormatTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* JsonFormat - JSON Feed Version 1
* https://jsonfeed.org/version/1
*/
require_once __DIR__ . '/../lib/rssbridge.php';

use PHPUnit\Framework\TestCase;

Expand Down

0 comments on commit bb6d553

Please sign in to comment.