Skip to content

Commit

Permalink
Revert "Make lib and repo maintenance directories PSR-4 compatible"
Browse files Browse the repository at this point in the history
The actual file names are lower case, thus this breaks
maintenance script autoloading.

This reverts commit 0d988c3.

Change-Id: I3dca2edc2f017868730706f32760c75e10c07c5c
  • Loading branch information
mariushoch committed May 6, 2016
1 parent 0d988c3 commit a7d3e4d
Show file tree
Hide file tree
Showing 19 changed files with 23 additions and 27 deletions.
2 changes: 1 addition & 1 deletion client/maintenance/populateEntityUsage.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Client\Maintenance;
namespace Wikibase;

use LoggedUpdateMaintenance;
use Wikibase\Client\Usage\Sql\EntityUsageTableBuilder;
Expand Down
2 changes: 1 addition & 1 deletion client/maintenance/populateInterwiki.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Client\Maintenance;
namespace Wikibase;

use BagOStuff;
use Http;
Expand Down
2 changes: 1 addition & 1 deletion client/maintenance/updateSubscriptions.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Client\Maintenance;
namespace Wikibase;

use Maintenance;
use Wikibase\Client\Store\Sql\BulkSubscriptionUpdater;
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@
"client/tests/phpunit/MockClientStore.php",
"lib/includes/",
"lib/WikibaseLib.hooks.php",
"lib/maintenance/",
"repo/includes/",
"repo/maintenance/",
"repo/tests/phpunit/",
"repo/Wikibase.hooks.php"
],
"psr-4": {
"Wikibase\\Client\\Tests\\": "client/tests/phpunit/includes",
"Wikibase\\Lib\\Maintenance\\": "lib/maintenance",
"Wikibase\\Lib\\Tests\\": "lib/tests/phpunit",
"Wikibase\\Repo\\Maintenance\\": "repo/maintenance",
"Wikibase\\View\\": "view/src",
"Wikibase\\View\\Tests\\": "view/tests/phpunit"
}
Expand Down
2 changes: 1 addition & 1 deletion lib/maintenance/populateSitesTable.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Lib\Maintenance;
namespace Wikibase;

use Http;
use Maintenance;
Expand Down
2 changes: 1 addition & 1 deletion repo/includes/Store/Sql/DatabaseSchemaUpdater.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use DatabaseUpdater;
use HashBagOStuff;
use MWException;
use Wikibase\Repo\Maintenance\RebuildTermsSearchKey;
use Wikibase\RebuildTermsSearchKey;
use Wikibase\Repo\Maintenance\RebuildEntityPerPage;
use Wikibase\Store;
use Wikibase\PropertyInfoTable;
Expand Down
2 changes: 1 addition & 1 deletion repo/maintenance/changePropertyDataType.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Repo\Maintenance;
namespace Wikibase;

use Exception;
use InvalidArgumentException;
Expand Down
2 changes: 1 addition & 1 deletion repo/maintenance/createBlacklistedItems.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Repo\Maintenance;
namespace Wikibase;

use Maintenance;
use Wikibase\DataModel\Entity\Item;
Expand Down
4 changes: 1 addition & 3 deletions repo/maintenance/dispatchChanges.php
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
<?php

namespace Wikibase\Repo\Maintenance;
namespace Wikibase;

use Exception;
use Maintenance;
use MWException;
use RequestContext;
use Wikibase\ChunkCache;
use Wikibase\Lib\Reporting\ObservableMessageReporter;
use Wikibase\Lib\Reporting\ReportingExceptionHandler;
use Wikibase\Lib\Store\ChangeLookup;
use Wikibase\Repo\ChangeDispatcher;
use Wikibase\Repo\Notifications\JobQueueChangeNotificationSender;
use Wikibase\Repo\WikibaseRepo;
use Wikibase\SettingsArray;
use Wikibase\Store\Sql\SqlChangeDispatchCoordinator;
use Wikibase\Store\Sql\SqlSubscriptionLookup;

Expand Down
2 changes: 1 addition & 1 deletion repo/maintenance/dumpEntities.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Repo\Maintenance;
namespace Wikibase;

use Maintenance;
use MWException;
Expand Down
3 changes: 2 additions & 1 deletion repo/maintenance/dumpJson.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?php

namespace Wikibase\Repo\Maintenance;
namespace Wikibase;

use DataValues\Serializers\DataValueSerializer;
use Serializers\Serializer;
use Wikibase\DataModel\SerializerFactory;
use Wikibase\DataModel\Services\Entity\EntityPrefetcher;
Expand Down
2 changes: 1 addition & 1 deletion repo/maintenance/dumpRdf.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Repo\Maintenance;
namespace Wikibase;

use SiteStore;
use Wikibase\DataModel\Services\Entity\EntityPrefetcher;
Expand Down
2 changes: 1 addition & 1 deletion repo/maintenance/importProperties.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Repo\Maintenance;
namespace Wikibase;

use Exception;
use Maintenance;
Expand Down
2 changes: 1 addition & 1 deletion repo/maintenance/populateChangesSubscription.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Repo\Maintenance;
namespace Wikibase;

use LoggedUpdateMaintenance;
use Wikibase\DataModel\Entity\ItemId;
Expand Down
2 changes: 1 addition & 1 deletion repo/maintenance/pruneChanges.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Repo\Maintenance;
namespace Wikibase;

use Maintenance;
use Wikibase\Lib\Reporting\MessageReporter;
Expand Down
4 changes: 1 addition & 3 deletions repo/maintenance/rebuildPropertyInfo.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<?php

namespace Wikibase\Repo\Maintenance;
namespace Wikibase;

use LoggedUpdateMaintenance;
use Wikibase\Lib\Reporting\ObservableMessageReporter;
use Wikibase\PropertyInfoTable;
use Wikibase\PropertyInfoTableBuilder;
use Wikibase\Repo\WikibaseRepo;

$basePath = getenv( 'MW_INSTALL_PATH' ) !== false ? getenv( 'MW_INSTALL_PATH' ) : __DIR__ . '/../../../..';
Expand Down
3 changes: 1 addition & 2 deletions repo/maintenance/rebuildTermsSearchKey.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<?php

namespace Wikibase\Repo\Maintenance;
namespace Wikibase;

use LoggedUpdateMaintenance;
use Wikibase\Lib\Reporting\ObservableMessageReporter;
use Wikibase\Repo\WikibaseRepo;
use Wikibase\TermSearchKeyBuilder;

$basePath = getenv( 'MW_INSTALL_PATH' ) !== false ? getenv( 'MW_INSTALL_PATH' ) : __DIR__ . '/../../../..';

Expand Down
4 changes: 2 additions & 2 deletions repo/tests/phpunit/maintenance/dumpJsonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
use Wikibase\DataModel\Term\Fingerprint;
use Wikibase\DataModel\Term\Term;
use Wikibase\DataModel\Term\TermList;
use Wikibase\Repo\Maintenance\DumpJson;
use Wikibase\DumpJson;
use Wikibase\Lib\Tests\MockRepository;
use Wikibase\Repo\Tests\MockEntityPerPage;

/**
* @covers Wikibase\Repo\Maintenance\DumpJson
* @covers Wikibase\DumpJson
*
* @group WikibaseRepo
* @group Wikibase
Expand Down
4 changes: 2 additions & 2 deletions repo/tests/phpunit/maintenance/dumpRdfTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
use Wikibase\DataModel\Term\Fingerprint;
use Wikibase\DataModel\Term\Term;
use Wikibase\DataModel\Term\TermList;
use Wikibase\Repo\Maintenance\DumpRdf;
use Wikibase\DumpRdf;
use Wikibase\Lib\Tests\MockRepository;
use Wikibase\Rdf\RdfVocabulary;
use Wikibase\Repo\Tests\MockEntityPerPage;
use Wikibase\Repo\WikibaseRepo;

/**
* @covers Wikibase\Repo\Maintenance\DumpRdf
* @covers Wikibase\DumpRdf
*
* @group WikibaseRepo
* @group Wikibase
Expand Down

0 comments on commit a7d3e4d

Please sign in to comment.