mirror of
https://github.com/silverstripe/silverstripe-externallinks.git
synced 2024-10-22 17:05:44 +02:00
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:
parent
4b59fdba02
commit
e6ddf0fe47
10
.upgrade.yml
Normal file
10
.upgrade.yml
Normal 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
|
@ -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');
|
||||
|
@ -1,5 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace SilverStripe\ExternalLinks\Jobs;
|
||||
|
||||
use AbstractQueuedJob;
|
||||
use QueuedJob;
|
||||
use CheckExternalLinksTask;
|
||||
|
||||
|
||||
if(!class_exists('AbstractQueuedJob')) return;
|
||||
|
||||
/**
|
||||
|
@ -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
|
||||
*
|
||||
|
@ -1,5 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace SilverStripe\ExternalLinks\Model;
|
||||
|
||||
use DataObject;
|
||||
use Versioned;
|
||||
|
||||
|
||||
/**
|
||||
* Represents a track for a single page
|
||||
*/
|
||||
|
@ -1,5 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace SilverStripe\ExternalLinks\Model;
|
||||
|
||||
use DataObject;
|
||||
use Versioned;
|
||||
|
||||
|
||||
/**
|
||||
* Represents the status of a track run
|
||||
*
|
||||
|
@ -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
|
||||
|
@ -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(
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace SilverStripe\ExternalLinks\Tasks;
|
||||
|
||||
use SS_Cache;
|
||||
|
||||
|
||||
/**
|
||||
* Check links using curl
|
||||
*/
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace SilverStripe\ExternalLinks\Tasks;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Provides an interface for checking that a link is valid
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user