Daniel Kinzler has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/360365 )

Change subject: Remove MediaWiki framework integration
......................................................................

Remove MediaWiki framework integration

Bug: T168359
Change-Id: I362e55c67d663634e620ca843e7786ebfa649e6e
---
D Purtle.php
M composer.json
D init.mw.php
3 files changed, 0 insertions(+), 48 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/purtle refs/changes/65/360365/1

diff --git a/Purtle.php b/Purtle.php
deleted file mode 100644
index 8733494..0000000
--- a/Purtle.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-
-if ( defined( 'PURTLE_VERSION' ) ) {
-       // Do not initialize more than once.
-       return 1;
-}
-
-define( 'PURTLE_VERSION', '1.0.3' );
-
-// Include the composer autoloader if it is present.
-if ( is_readable( __DIR__ . '/vendor/autoload.php' ) ) {
-       require_once __DIR__ . '/vendor/autoload.php';
-}
-
-if ( defined( 'MEDIAWIKI' ) ) {
-       call_user_func( function() {
-               require_once __DIR__ . '/init.mw.php';
-       } );
-}
diff --git a/composer.json b/composer.json
index cd3b69d..145ee70 100644
--- a/composer.json
+++ b/composer.json
@@ -33,9 +33,6 @@
                "phpmd/phpmd": "~2.3"
        },
        "autoload": {
-               "files" : [
-                       "Purtle.php"
-               ],
                "psr-4": {
                        "Wikimedia\\Purtle\\": "src/",
                        "Wikimedia\\Purtle\\Tests\\": "tests/phpunit/"
diff --git a/init.mw.php b/init.mw.php
deleted file mode 100644
index c24474f..0000000
--- a/init.mw.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-// Integration with MediaWiki extension registration system.
-
-if ( !defined( 'MEDIAWIKI' ) ) {
-       die( 'Not an entry point.' );
-}
-
-$GLOBALS['wgExtensionCredits']['purtle'][] = array(
-       'path' => __FILE__,
-       'name' => 'Purtle',
-       'version' => PURTLE_VERSION,
-       'author' => array(
-               'Daniel Kinzler',
-               'Stas Malyshev',
-               'Thiemo Mättig'
-       ),
-       'url' => 'https://mediawiki.org/wiki/Purtle',
-       'description' => 'Fast streaming RDF serializer',
-       'license-name' => 'GPL-2.0+'
-);
-
-
-$GLOBALS['wgHooks']['UnitTestsList'][] = function( array &$paths ) {
-       $paths[] = __DIR__ . '/tests/phpunit';
-};

-- 
To view, visit https://gerrit.wikimedia.org/r/360365
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I362e55c67d663634e620ca843e7786ebfa649e6e
Gerrit-PatchSet: 1
Gerrit-Project: purtle
Gerrit-Branch: master
Gerrit-Owner: Daniel Kinzler <daniel.kinz...@wikimedia.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to