From ce7d4f1ec37db463e6008655bbc56b811c5a5d86 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 11 May 2015 13:58:25 +0200 Subject: [PATCH] inc/classes.php is old and only contains one call, so better remove it entirely. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- inc/classes.php | 31 +------------------------------ inc/includes.php | 3 +++ index.php | 3 --- 3 files changed, 4 insertions(+), 33 deletions(-) diff --git a/inc/classes.php b/inc/classes.php index 9debeb10..f551ef47 100644 --- a/inc/classes.php +++ b/inc/classes.php @@ -1,32 +1,3 @@ - * @version 0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core Developer Team - * @license GNU GPL 3.0 or any newer version - * @deprecated - * @todo Minimize these includes - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -// Scan for all framework classes, exceptions and interfaces -ClassLoader::scanFrameworkClasses(); - -////// Until here the framework classes are loaded ////// - -// [EOF] +// @DEPRECATED ?> diff --git a/inc/includes.php b/inc/includes.php index 4b868980..39be877d 100644 --- a/inc/includes.php +++ b/inc/includes.php @@ -67,5 +67,8 @@ $application = preg_replace('/([^a-z0-9_-])+/i', '', $application); // Set the application name for later usage FrameworkConfiguration::getSelfInstance()->setConfigEntry('app_name', $application); +// Scan for all framework classes, exceptions and interfaces +ClassLoader::scanFrameworkClasses(); + // [EOF] ?> diff --git a/index.php b/index.php index ca598d09..51eb50ef 100644 --- a/index.php +++ b/index.php @@ -197,9 +197,6 @@ final class ApplicationEntryPoint { // Load all include files require($cfg->getConfigEntry('base_path') . 'inc/includes.php'); - // Load all framework classes - require($cfg->getConfigEntry('base_path') . 'inc/classes.php'); - // Include the application selector require($cfg->getConfigEntry('base_path') . 'inc/selector.php'); } // END - main() -- 2.30.2