diff --git a/Classes/Command/CheckLinksCommandController.php b/Classes/Command/CheckLinksCommandController.php index ee5723d..86b4d2a 100644 --- a/Classes/Command/CheckLinksCommandController.php +++ b/Classes/Command/CheckLinksCommandController.php @@ -1,11 +1,11 @@ 0 ORDER BY t.statusCode ASC"; $statusCodes = $this->createDqlQuery($dql)->getArrayResult(); diff --git a/Classes/Profile/CheckAllLinks.php b/Classes/Profile/CheckAllLinks.php index 1a0774f..dc92f13 100644 --- a/Classes/Profile/CheckAllLinks.php +++ b/Classes/Profile/CheckAllLinks.php @@ -1,11 +1,11 @@ template['package'] ?? 'Noerdisch.LinkChecker'; + $packageName = $this->template['package'] ?? 'Unikka.LinkChecker'; $templateName = $this->template['file'] ?? 'NotificationMail'; $rootPath = sprintf('resource://%s/Private/Notification/', $packageName); $templatePathAndFilename = $rootPath . sprintf('Templates/%s.%s', $templateName, $format); @@ -218,12 +218,12 @@ protected function resolveAddress($addressKeyOrAddresses, $addressesConfig, $des } if (!isset($addressesConfig[$addressKeyOrAddresses])) { $errorMessage = 'The given address string was not found in config. Please check config path'; - $errorMessage .= ' "Noerdisch.LinkChecker.%s.%s".'; + $errorMessage .= ' "Unikka.LinkChecker.%s.%s".'; throw new \RuntimeException(sprintf($errorMessage, $description, $addressKeyOrAddresses), 1540192171); } if (!isset($addressesConfig[$addressKeyOrAddresses]['name'], $addressesConfig[$addressKeyOrAddresses]['address'])) { $errorMessage = 'The given sender is not correctly configured - "name" or "address" are missing.'; - $errorMessage .= ' Please check config path "Noerdisch.LinkChecker.%s.%s".'; + $errorMessage .= ' Please check config path "Unikka.LinkChecker.%s.%s".'; throw new \RuntimeException(sprintf($errorMessage, $description, $addressKeyOrAddresses), 1540192180); } return [$addressesConfig[$addressKeyOrAddresses]['address'] => $addressesConfig[$addressKeyOrAddresses]['name']]; diff --git a/Classes/Service/NotificationServiceInterface.php b/Classes/Service/NotificationServiceInterface.php index 55fcfa1..c06ff21 100644 --- a/Classes/Service/NotificationServiceInterface.php +++ b/Classes/Service/NotificationServiceInterface.php @@ -1,11 +1,11 @@ abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on "mysql".'); - $this->addSql('CREATE TABLE noerdisch_linkchecker_domain_model_resultitem (persistence_object_identifier VARCHAR(40) NOT NULL, createdat DATETIME NOT NULL, checkedat DATETIME NOT NULL, originurl VARCHAR(255) NOT NULL, url VARCHAR(255) NOT NULL, statuscode INT NOT NULL, PRIMARY KEY(persistence_object_identifier)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB'); + $this->addSql('CREATE TABLE unikka_linkchecker_domain_model_resultitem (persistence_object_identifier VARCHAR(40) NOT NULL, createdat DATETIME NOT NULL, checkedat DATETIME NOT NULL, originurl VARCHAR(255) NOT NULL, url VARCHAR(255) NOT NULL, statuscode INT NOT NULL, PRIMARY KEY(persistence_object_identifier)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB'); } /** @@ -42,7 +42,7 @@ public function down(Schema $schema): void { // this down() migration is autogenerated, please modify it to your needs $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on "mysql".'); - - $this->addSql('DROP TABLE noerdisch_linkchecker_domain_model_resultitem'); + + $this->addSql('DROP TABLE unikka_linkchecker_domain_model_resultitem'); } } diff --git a/README.md b/README.md index 5966f11..cd7cfed 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,10 @@

- - - +

-[![Packagist](https://img.shields.io/packagist/l/noerdisch/linkchecker.svg?style=flat-square)](https://packagist.org/packages/noerdisch/linkchecker) -[![Packagist](https://img.shields.io/packagist/v/noerdisch/linkchecker.svg?style=flat-square)](https://packagist.org/packages/noerdisch/linkchecker) -[![Twitter Follow](https://img.shields.io/twitter/follow/noerdisch.svg?style=social&label=Follow&style=flat-square)](https://twitter.com/noerdisch) +[![Packagist](https://img.shields.io/packagist/l/unikka/neos-linkchecker.svg?style=flat-square)](https://packagist.org/packages/unikka/neos-linkchecker) +[![Packagist](https://img.shields.io/packagist/v/unikka/neos-linkchecker.svg?style=flat-square)](https://packagist.org/packages/unikka/neos-linkchecker) +[![Twitter Follow](https://img.shields.io/twitter/follow/unikka_de.svg?style=social&label=Follow&style=flat-square)](https://twitter.com/unikka_de) # Neos.LinkChecker @@ -17,7 +15,7 @@ Neos package that is able to crawl the whole page and check the links for broken ## Installation ```bash -composer require noerdisch/linkchecker +composer require unikka/neos-linkchecker --no-update ``` @@ -29,5 +27,10 @@ It is really easy, when you always commit via `yarn commit`. Commitizen will gui If you have questions just ping us on twitter or github. +## About + +The package is based on the `Noerdisch/LinkChecker` package. We thank the Noerdisch team for +all the efforts. + ## License The MIT License (MIT), please see [License File](LICENSE) for more information. diff --git a/Resources/Private/Translations/de/Modules.xlf b/Resources/Private/Translations/de/Modules.xlf index 45073ab..2ac5ff1 100644 --- a/Resources/Private/Translations/de/Modules.xlf +++ b/Resources/Private/Translations/de/Modules.xlf @@ -1,6 +1,6 @@ - + URL diff --git a/Resources/Private/Translations/en/Modules.xlf b/Resources/Private/Translations/en/Modules.xlf index cccfa6d..12e7ae1 100644 --- a/Resources/Private/Translations/en/Modules.xlf +++ b/Resources/Private/Translations/en/Modules.xlf @@ -1,6 +1,6 @@ - + URL diff --git a/composer.json b/composer.json index 2d7f2b1..1ccb248 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "description": "NeosCMS package that is able to crawl the whole page and check the links for broken links", "type": "neos-package", - "name": "noerdisch/linkchecker", + "name": "unikka/neos-linkchecker", "license": "MIT", "require": { "php" : "^7.1", @@ -13,12 +13,12 @@ }, "autoload": { "psr-4": { - "Noerdisch\\LinkChecker\\": "Classes/" + "Unikka\\LinkChecker\\": "Classes/" } }, "extra": { "neos": { - "package-key": "Noerdisch.LinkChecker" + "package-key": "Unikka.LinkChecker" } } } diff --git a/package.json b/package.json index 196ab27..c86c48f 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "noerdisch.linkchecker", + "name": "unikka.linkchecker", "version": "0.0.0", "description": "Neos package that is able to crawl the whole page and check the links for broken links", "scripts": { @@ -8,7 +8,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/noerdisch/Neos.LinkChecker.git" + "url": "git+https://github.com:Unikka/neos-linkchecker.git" }, "keywords": [ "neos", @@ -19,9 +19,9 @@ "author": "Markus Günther", "license": "MIT", "bugs": { - "url": "https://github.com/noerdisch/Neos.LinkChecker/issues" + "url": "https://github.com/Unikka/neos-linkchecker/issues" }, - "homepage": "https://github.com/noerdisch/Neos.LinkChecker#readme", + "homepage": "https://github.com/Unikka/neos-linkchecker#readme", "dependencies": { "commitizen": "^3.0.2", "conventional-changelog-eslint": "^3.0.0",