Move interface ILocalizedException to own file
Change-Id: I66429a89633a74a22999775214aa23ae189b837e
This commit is contained in:
parent
ace00ba832
commit
5d2e39401d
4 changed files with 34 additions and 17 deletions
|
|
@ -82,7 +82,6 @@
|
|||
<exclude-pattern>*/includes/jobqueue/JobSpecification\.php</exclude-pattern>
|
||||
<exclude-pattern>*/includes/RevisionList\.php</exclude-pattern>
|
||||
<exclude-pattern>*/includes/installer/PhpBugTests\.php</exclude-pattern>
|
||||
<exclude-pattern>*/includes/exception/LocalizedException\.php</exclude-pattern>
|
||||
<exclude-pattern>*/includes/specials/SpecialMostinterwikis\.php</exclude-pattern>
|
||||
<exclude-pattern>*/includes/cache/CacheDependency\.php</exclude-pattern>
|
||||
<exclude-pattern>*/includes/cache/CacheHelper\.php</exclude-pattern>
|
||||
|
|
@ -233,7 +232,6 @@
|
|||
<exclude-pattern>*/includes/deferred/CdnCacheUpdate\.php</exclude-pattern>
|
||||
<exclude-pattern>*/includes/diff/DairikiDiff\.php</exclude-pattern>
|
||||
<exclude-pattern>*/includes/diff/DiffEngine\.php</exclude-pattern>
|
||||
<exclude-pattern>*/includes/exception/LocalizedException\.php</exclude-pattern>
|
||||
<exclude-pattern>*/includes/Feed\.php</exclude-pattern>
|
||||
<exclude-pattern>*/includes/filerepo/file/LocalFile\.php</exclude-pattern>
|
||||
<exclude-pattern>*/includes/gallery/PackedOverlayImageGallery\.php</exclude-pattern>
|
||||
|
|
|
|||
|
|
@ -648,7 +648,7 @@ $wgAutoloadLocalClasses = [
|
|||
'IEUrlExtension' => __DIR__ . '/includes/libs/IEUrlExtension.php',
|
||||
'IExpiringStore' => __DIR__ . '/includes/libs/objectcache/IExpiringStore.php',
|
||||
'IJobSpecification' => __DIR__ . '/includes/jobqueue/JobSpecification.php',
|
||||
'ILocalizedException' => __DIR__ . '/includes/exception/LocalizedException.php',
|
||||
'ILocalizedException' => __DIR__ . '/includes/exception/ILocalizedException.php',
|
||||
'IMaintainableDatabase' => __DIR__ . '/includes/libs/rdbms/database/IMaintainableDatabase.php',
|
||||
'IP' => __DIR__ . '/includes/libs/IP.php',
|
||||
'IPTC' => __DIR__ . '/includes/media/IPTC.php',
|
||||
|
|
|
|||
33
includes/exception/ILocalizedException.php
Normal file
33
includes/exception/ILocalizedException.php
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
/**
|
||||
* 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 2 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, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
* http://www.gnu.org/copyleft/gpl.html
|
||||
*
|
||||
* @file
|
||||
*/
|
||||
|
||||
/**
|
||||
* Interface for MediaWiki-localized exceptions
|
||||
*
|
||||
* @since 1.29
|
||||
* @ingroup Exception
|
||||
*/
|
||||
interface ILocalizedException {
|
||||
/**
|
||||
* Return a Message object for this exception
|
||||
* @return Message
|
||||
*/
|
||||
public function getMessageObject();
|
||||
}
|
||||
|
|
@ -18,20 +18,6 @@
|
|||
* @file
|
||||
*/
|
||||
|
||||
/**
|
||||
* Interface for MediaWiki-localized exceptions
|
||||
*
|
||||
* @since 1.29
|
||||
* @ingroup Exception
|
||||
*/
|
||||
interface ILocalizedException {
|
||||
/**
|
||||
* Return a Message object for this exception
|
||||
* @return Message
|
||||
*/
|
||||
public function getMessageObject();
|
||||
}
|
||||
|
||||
/**
|
||||
* Basic localized exception.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue