Add namespaces via upgrade-code add-namespace tool

Running this command for each directory in the `src` folder we generate a
valid `.upgrade.yml` which can be used by other modules that may use this
one as a dependency to upgrade themselves without issue.
This commit is contained in:
Dylan Wagstaff 2017-11-22 14:26:15 +13:00
parent 4b59fdba02
commit e6ddf0fe47
10 changed files with 79 additions and 0 deletions

10
.upgrade.yml Normal file
View File

@ -0,0 +1,10 @@
mappings:
CMSExternalLinks_Controller: SilverStripe\ExternalLinks\Controllers\CMSExternalLinks_Controller
CheckExternalLinksJob: SilverStripe\ExternalLinks\Jobs\CheckExternalLinksJob
BrokenExternalLink: SilverStripe\ExternalLinks\Model\BrokenExternalLink
BrokenExternalPageTrack: SilverStripe\ExternalLinks\Model\BrokenExternalPageTrack
BrokenExternalPageTrackStatus: SilverStripe\ExternalLinks\Model\BrokenExternalPageTrackStatus
BrokenExternalLinksReport: SilverStripe\ExternalLinks\Reports\BrokenExternalLinksReport
CheckExternalLinksTask: SilverStripe\ExternalLinks\Tasks\CheckExternalLinksTask
CurlLinkChecker: SilverStripe\ExternalLinks\Tasks\CurlLinkChecker
LinkChecker: SilverStripe\ExternalLinks\Tasks\LinkChecker

View File

@ -1,5 +1,14 @@
<?php
namespace SilverStripe\ExternalLinks\Controllers;
use Controller;
use HTTP;
use BrokenExternalPageTrackStatus;
use CheckExternalLinksJob;
use CheckExternalLinksTask;
class CMSExternalLinks_Controller extends Controller {
private static $allowed_actions = array('getJobStatus', 'start');

View File

@ -1,5 +1,12 @@
<?php
namespace SilverStripe\ExternalLinks\Jobs;
use AbstractQueuedJob;
use QueuedJob;
use CheckExternalLinksTask;
if(!class_exists('AbstractQueuedJob')) return;
/**

View File

@ -1,5 +1,13 @@
<?php
namespace SilverStripe\ExternalLinks\Model;
use DataObject;
use Member;
use Permission;
use Config;
/**
* Represents a single link checked for a single run that is broken
*

View File

@ -1,5 +1,11 @@
<?php
namespace SilverStripe\ExternalLinks\Model;
use DataObject;
use Versioned;
/**
* Represents a track for a single page
*/

View File

@ -1,5 +1,11 @@
<?php
namespace SilverStripe\ExternalLinks\Model;
use DataObject;
use Versioned;
/**
* Represents the status of a track run
*

View File

@ -1,5 +1,15 @@
<?php
namespace SilverStripe\ExternalLinks\Reports;
use SS_Report;
use Convert;
use BrokenExternalPageTrackStatus;
use ArrayList;
use Requirements;
use LiteralField;
/**
* Content side-report listing pages with external broken links
* @package externallinks

View File

@ -1,5 +1,18 @@
<?php
namespace SilverStripe\ExternalLinks\Tasks;
use BuildTask;
use Debug;
use BrokenExternalPageTrack;
use DOMNode;
use BrokenExternalLink;
use Config;
use BrokenExternalPageTrackStatus;
use Injector;
use DB;
class CheckExternalLinksTask extends BuildTask {
private static $dependencies = array(

View File

@ -1,5 +1,10 @@
<?php
namespace SilverStripe\ExternalLinks\Tasks;
use SS_Cache;
/**
* Check links using curl
*/

View File

@ -1,5 +1,10 @@
<?php
namespace SilverStripe\ExternalLinks\Tasks;
/**
* Provides an interface for checking that a link is valid
*/