From e6ddf0fe4788d038395702c7404fd6d5549d88eb Mon Sep 17 00:00:00 2001 From: Dylan Wagstaff Date: Wed, 22 Nov 2017 14:26:15 +1300 Subject: [PATCH] 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. --- .upgrade.yml | 10 ++++++++++ src/Controllers/CMSExternalLinks.php | 9 +++++++++ src/Jobs/CheckExternalLinksJob.php | 7 +++++++ src/Model/BrokenExternalLink.php | 8 ++++++++ src/Model/BrokenExternalPageTrack.php | 6 ++++++ src/Model/BrokenExternalPageTrackStatus.php | 6 ++++++ src/Reports/BrokenExternalLinksReport.php | 10 ++++++++++ src/Tasks/CheckExternalLinksTask.php | 13 +++++++++++++ src/Tasks/CurlLinkChecker.php | 5 +++++ src/Tasks/LinkChecker.php | 5 +++++ 10 files changed, 79 insertions(+) create mode 100644 .upgrade.yml diff --git a/.upgrade.yml b/.upgrade.yml new file mode 100644 index 0000000..ce4f759 --- /dev/null +++ b/.upgrade.yml @@ -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 diff --git a/src/Controllers/CMSExternalLinks.php b/src/Controllers/CMSExternalLinks.php index 2b0efb6..9b59eaf 100644 --- a/src/Controllers/CMSExternalLinks.php +++ b/src/Controllers/CMSExternalLinks.php @@ -1,5 +1,14 @@