From af915dd3a19e5d038f7627f6a3c7d764ba3bc03b Mon Sep 17 00:00:00 2001 From: Jeroen Thora Date: Mon, 11 Nov 2024 14:04:15 +0100 Subject: [PATCH] [GeneratorBundle] Mark all generator classes as internal --- .../GeneratorBundle/Command/GenerateAdminListCommand.php | 2 +- .../GeneratorBundle/Command/GenerateAdminTestsCommand.php | 2 +- .../GeneratorBundle/Command/GenerateArticleCommand.php | 2 ++ .../GeneratorBundle/Command/GenerateConfigCommand.php | 2 +- .../Command/GenerateDefaultPagePartsCommand.php | 2 +- .../GeneratorBundle/Command/GenerateDefaultSiteCommand.php | 2 +- .../GeneratorBundle/Command/GenerateFormPageCommand.php | 2 +- .../GeneratorBundle/Command/GenerateFormPagePartsCommand.php | 2 +- .../GeneratorBundle/Command/GenerateLayoutCommand.php | 2 +- src/Kunstmaan/GeneratorBundle/Command/GeneratePageCommand.php | 2 +- .../GeneratorBundle/Command/GeneratePagePartCommand.php | 2 +- .../GeneratorBundle/Command/GenerateSearchPageCommand.php | 2 +- src/Kunstmaan/GeneratorBundle/Command/InstallCommand.php | 2 +- .../GeneratorBundle/Command/KunstmaanGenerateCommand.php | 3 +++ src/Kunstmaan/GeneratorBundle/Generator/AdminListGenerator.php | 2 +- .../GeneratorBundle/Generator/AdminTestsGenerator.php | 2 ++ src/Kunstmaan/GeneratorBundle/Generator/ArticleGenerator.php | 2 +- src/Kunstmaan/GeneratorBundle/Generator/ConfigGenerator.php | 2 +- .../GeneratorBundle/Generator/DefaultPagePartGenerator.php | 2 +- .../GeneratorBundle/Generator/DefaultSiteGenerator.php | 2 ++ src/Kunstmaan/GeneratorBundle/Generator/FormPageGenerator.php | 2 +- src/Kunstmaan/GeneratorBundle/Generator/KunstmaanGenerator.php | 2 +- src/Kunstmaan/GeneratorBundle/Generator/LayoutGenerator.php | 2 +- src/Kunstmaan/GeneratorBundle/Generator/PageGenerator.php | 2 +- src/Kunstmaan/GeneratorBundle/Generator/PagePartGenerator.php | 2 +- .../GeneratorBundle/Generator/SearchPageGenerator.php | 3 +-- src/Kunstmaan/GeneratorBundle/Helper/CommandAssistant.php | 3 +++ src/Kunstmaan/GeneratorBundle/Helper/GeneratorUtils.php | 2 +- src/Kunstmaan/GeneratorBundle/Helper/InputAssistant.php | 2 ++ 29 files changed, 37 insertions(+), 24 deletions(-) diff --git a/src/Kunstmaan/GeneratorBundle/Command/GenerateAdminListCommand.php b/src/Kunstmaan/GeneratorBundle/Command/GenerateAdminListCommand.php index 1700c3ca0c..0988ae2468 100644 --- a/src/Kunstmaan/GeneratorBundle/Command/GenerateAdminListCommand.php +++ b/src/Kunstmaan/GeneratorBundle/Command/GenerateAdminListCommand.php @@ -16,7 +16,7 @@ use Symfony\Component\HttpKernel\Bundle\Bundle; /** - * Generates a KunstmaanAdminList + * @internal */ class GenerateAdminListCommand extends GenerateDoctrineCommand { diff --git a/src/Kunstmaan/GeneratorBundle/Command/GenerateAdminTestsCommand.php b/src/Kunstmaan/GeneratorBundle/Command/GenerateAdminTestsCommand.php index 353ab4e6fa..1aede120d6 100644 --- a/src/Kunstmaan/GeneratorBundle/Command/GenerateAdminTestsCommand.php +++ b/src/Kunstmaan/GeneratorBundle/Command/GenerateAdminTestsCommand.php @@ -11,7 +11,7 @@ use Symfony\Component\Filesystem\Filesystem; /** - * GenerateAdminTestsCommand + * @internal */ class GenerateAdminTestsCommand extends GeneratorCommand { diff --git a/src/Kunstmaan/GeneratorBundle/Command/GenerateArticleCommand.php b/src/Kunstmaan/GeneratorBundle/Command/GenerateArticleCommand.php index 11bb3be3c3..f78ea6db9e 100644 --- a/src/Kunstmaan/GeneratorBundle/Command/GenerateArticleCommand.php +++ b/src/Kunstmaan/GeneratorBundle/Command/GenerateArticleCommand.php @@ -10,6 +10,8 @@ /** * Generates classes based on the AbstractArticle classes from KunstmaanArticleBundle + * + * @internal */ class GenerateArticleCommand extends KunstmaanGenerateCommand { diff --git a/src/Kunstmaan/GeneratorBundle/Command/GenerateConfigCommand.php b/src/Kunstmaan/GeneratorBundle/Command/GenerateConfigCommand.php index 3eef41ca04..589c3cf75d 100644 --- a/src/Kunstmaan/GeneratorBundle/Command/GenerateConfigCommand.php +++ b/src/Kunstmaan/GeneratorBundle/Command/GenerateConfigCommand.php @@ -7,7 +7,7 @@ use Symfony\Component\Filesystem\Filesystem; /** - * Generates config files + * @internal */ class GenerateConfigCommand extends KunstmaanGenerateCommand { diff --git a/src/Kunstmaan/GeneratorBundle/Command/GenerateDefaultPagePartsCommand.php b/src/Kunstmaan/GeneratorBundle/Command/GenerateDefaultPagePartsCommand.php index a076ab79de..8671fa8327 100644 --- a/src/Kunstmaan/GeneratorBundle/Command/GenerateDefaultPagePartsCommand.php +++ b/src/Kunstmaan/GeneratorBundle/Command/GenerateDefaultPagePartsCommand.php @@ -9,7 +9,7 @@ use Symfony\Component\HttpKernel\Bundle\BundleInterface; /** - * Generates the default pageparts + * @internal */ class GenerateDefaultPagePartsCommand extends KunstmaanGenerateCommand { diff --git a/src/Kunstmaan/GeneratorBundle/Command/GenerateDefaultSiteCommand.php b/src/Kunstmaan/GeneratorBundle/Command/GenerateDefaultSiteCommand.php index 38131a4de1..903467adc6 100644 --- a/src/Kunstmaan/GeneratorBundle/Command/GenerateDefaultSiteCommand.php +++ b/src/Kunstmaan/GeneratorBundle/Command/GenerateDefaultSiteCommand.php @@ -11,7 +11,7 @@ use Symfony\Component\HttpKernel\Bundle\BundleInterface; /** - * Generates a default website based on Kunstmaan bundles + * @internal */ class GenerateDefaultSiteCommand extends KunstmaanGenerateCommand { diff --git a/src/Kunstmaan/GeneratorBundle/Command/GenerateFormPageCommand.php b/src/Kunstmaan/GeneratorBundle/Command/GenerateFormPageCommand.php index ce30d33bbe..41193c60e1 100644 --- a/src/Kunstmaan/GeneratorBundle/Command/GenerateFormPageCommand.php +++ b/src/Kunstmaan/GeneratorBundle/Command/GenerateFormPageCommand.php @@ -10,7 +10,7 @@ use Symfony\Component\HttpKernel\Bundle\BundleInterface; /** - * Generates a new formPage + * @internal */ class GenerateFormPageCommand extends KunstmaanGenerateCommand { diff --git a/src/Kunstmaan/GeneratorBundle/Command/GenerateFormPagePartsCommand.php b/src/Kunstmaan/GeneratorBundle/Command/GenerateFormPagePartsCommand.php index bac03597b9..ed8748c159 100644 --- a/src/Kunstmaan/GeneratorBundle/Command/GenerateFormPagePartsCommand.php +++ b/src/Kunstmaan/GeneratorBundle/Command/GenerateFormPagePartsCommand.php @@ -9,7 +9,7 @@ use Symfony\Component\HttpKernel\Bundle\BundleInterface; /** - * Generates the default form pageparts + * @internal */ class GenerateFormPagePartsCommand extends KunstmaanGenerateCommand { diff --git a/src/Kunstmaan/GeneratorBundle/Command/GenerateLayoutCommand.php b/src/Kunstmaan/GeneratorBundle/Command/GenerateLayoutCommand.php index fec268dd04..653ec80b4f 100644 --- a/src/Kunstmaan/GeneratorBundle/Command/GenerateLayoutCommand.php +++ b/src/Kunstmaan/GeneratorBundle/Command/GenerateLayoutCommand.php @@ -8,7 +8,7 @@ use Symfony\Component\HttpKernel\Bundle\BundleInterface; /** - * Generates de default layout + * @internal */ class GenerateLayoutCommand extends KunstmaanGenerateCommand { diff --git a/src/Kunstmaan/GeneratorBundle/Command/GeneratePageCommand.php b/src/Kunstmaan/GeneratorBundle/Command/GeneratePageCommand.php index 2b12114d21..628dabd682 100644 --- a/src/Kunstmaan/GeneratorBundle/Command/GeneratePageCommand.php +++ b/src/Kunstmaan/GeneratorBundle/Command/GeneratePageCommand.php @@ -8,7 +8,7 @@ use Symfony\Component\HttpKernel\Bundle\BundleInterface; /** - * Generates a new page + * @internal */ class GeneratePageCommand extends KunstmaanGenerateCommand { diff --git a/src/Kunstmaan/GeneratorBundle/Command/GeneratePagePartCommand.php b/src/Kunstmaan/GeneratorBundle/Command/GeneratePagePartCommand.php index 07f0c75776..e4c4c824bb 100644 --- a/src/Kunstmaan/GeneratorBundle/Command/GeneratePagePartCommand.php +++ b/src/Kunstmaan/GeneratorBundle/Command/GeneratePagePartCommand.php @@ -8,7 +8,7 @@ use Symfony\Component\HttpKernel\Bundle\BundleInterface; /** - * Generates a new pagepart + * @internal */ class GeneratePagePartCommand extends KunstmaanGenerateCommand { diff --git a/src/Kunstmaan/GeneratorBundle/Command/GenerateSearchPageCommand.php b/src/Kunstmaan/GeneratorBundle/Command/GenerateSearchPageCommand.php index 27c7aacb3e..921b1bbb19 100644 --- a/src/Kunstmaan/GeneratorBundle/Command/GenerateSearchPageCommand.php +++ b/src/Kunstmaan/GeneratorBundle/Command/GenerateSearchPageCommand.php @@ -13,7 +13,7 @@ use Symfony\Component\Filesystem\Filesystem; /** - * Generates a SearchPage based on the KunstmaanNodeSearchBundle + * @internal */ class GenerateSearchPageCommand extends GenerateDoctrineCommand { diff --git a/src/Kunstmaan/GeneratorBundle/Command/InstallCommand.php b/src/Kunstmaan/GeneratorBundle/Command/InstallCommand.php index 84285a1f01..61b6fabcb5 100644 --- a/src/Kunstmaan/GeneratorBundle/Command/InstallCommand.php +++ b/src/Kunstmaan/GeneratorBundle/Command/InstallCommand.php @@ -14,7 +14,7 @@ use Symfony\Component\Process\Process; /** - * Kunstmaan installer + * @internal */ final class InstallCommand extends GeneratorCommand { diff --git a/src/Kunstmaan/GeneratorBundle/Command/KunstmaanGenerateCommand.php b/src/Kunstmaan/GeneratorBundle/Command/KunstmaanGenerateCommand.php index 57d729814f..3c4dc9190c 100644 --- a/src/Kunstmaan/GeneratorBundle/Command/KunstmaanGenerateCommand.php +++ b/src/Kunstmaan/GeneratorBundle/Command/KunstmaanGenerateCommand.php @@ -21,6 +21,9 @@ use Symfony\Component\Yaml\Exception\ParseException; use Symfony\Component\Yaml\Yaml; +/** + * @internal + */ abstract class KunstmaanGenerateCommand extends GenerateDoctrineCommand { /** diff --git a/src/Kunstmaan/GeneratorBundle/Generator/AdminListGenerator.php b/src/Kunstmaan/GeneratorBundle/Generator/AdminListGenerator.php index 7d6d37107e..e556c5e075 100644 --- a/src/Kunstmaan/GeneratorBundle/Generator/AdminListGenerator.php +++ b/src/Kunstmaan/GeneratorBundle/Generator/AdminListGenerator.php @@ -9,7 +9,7 @@ use Symfony\Component\HttpKernel\Kernel; /** - * Generates all classes for an admin list + * @internal */ class AdminListGenerator extends \Sensio\Bundle\GeneratorBundle\Generator\Generator { diff --git a/src/Kunstmaan/GeneratorBundle/Generator/AdminTestsGenerator.php b/src/Kunstmaan/GeneratorBundle/Generator/AdminTestsGenerator.php index 3dbabd5fa0..64d8eb98f7 100644 --- a/src/Kunstmaan/GeneratorBundle/Generator/AdminTestsGenerator.php +++ b/src/Kunstmaan/GeneratorBundle/Generator/AdminTestsGenerator.php @@ -12,6 +12,8 @@ /** * Generates tests to test the admin backend generated by the default-site generator + * + * @interal */ class AdminTestsGenerator extends Generator { diff --git a/src/Kunstmaan/GeneratorBundle/Generator/ArticleGenerator.php b/src/Kunstmaan/GeneratorBundle/Generator/ArticleGenerator.php index 38cfda84d6..bee4a31dc7 100644 --- a/src/Kunstmaan/GeneratorBundle/Generator/ArticleGenerator.php +++ b/src/Kunstmaan/GeneratorBundle/Generator/ArticleGenerator.php @@ -12,7 +12,7 @@ use Symfony\Component\HttpKernel\Kernel; /** - * Generates an Article section + * @internal */ class ArticleGenerator extends KunstmaanGenerator { diff --git a/src/Kunstmaan/GeneratorBundle/Generator/ConfigGenerator.php b/src/Kunstmaan/GeneratorBundle/Generator/ConfigGenerator.php index 1dc2d2ba8c..67a13be5d2 100644 --- a/src/Kunstmaan/GeneratorBundle/Generator/ConfigGenerator.php +++ b/src/Kunstmaan/GeneratorBundle/Generator/ConfigGenerator.php @@ -9,7 +9,7 @@ use Symfony\Component\Security\Http\Authenticator\AccessTokenAuthenticator; /** - * Generates all config files + * @internal */ class ConfigGenerator extends KunstmaanGenerator { diff --git a/src/Kunstmaan/GeneratorBundle/Generator/DefaultPagePartGenerator.php b/src/Kunstmaan/GeneratorBundle/Generator/DefaultPagePartGenerator.php index 980934eec3..0900f7a63d 100644 --- a/src/Kunstmaan/GeneratorBundle/Generator/DefaultPagePartGenerator.php +++ b/src/Kunstmaan/GeneratorBundle/Generator/DefaultPagePartGenerator.php @@ -12,7 +12,7 @@ use Symfony\Component\Yaml\Yaml; /** - * Generates all classes/files for a new pagepart + * @internal */ class DefaultPagePartGenerator extends KunstmaanGenerator { diff --git a/src/Kunstmaan/GeneratorBundle/Generator/DefaultSiteGenerator.php b/src/Kunstmaan/GeneratorBundle/Generator/DefaultSiteGenerator.php index d158605fa5..bc686af446 100644 --- a/src/Kunstmaan/GeneratorBundle/Generator/DefaultSiteGenerator.php +++ b/src/Kunstmaan/GeneratorBundle/Generator/DefaultSiteGenerator.php @@ -13,6 +13,8 @@ /** * Generates a default website using several Kunstmaan bundles using default templates and assets + * + * @interal */ class DefaultSiteGenerator extends KunstmaanGenerator { diff --git a/src/Kunstmaan/GeneratorBundle/Generator/FormPageGenerator.php b/src/Kunstmaan/GeneratorBundle/Generator/FormPageGenerator.php index 71acc82e80..ba5f2559b0 100644 --- a/src/Kunstmaan/GeneratorBundle/Generator/FormPageGenerator.php +++ b/src/Kunstmaan/GeneratorBundle/Generator/FormPageGenerator.php @@ -6,7 +6,7 @@ use Symfony\Component\HttpKernel\Bundle\BundleInterface; /** - * Generates all classes/files for a new formpage + * @internal */ class FormPageGenerator extends KunstmaanGenerator { diff --git a/src/Kunstmaan/GeneratorBundle/Generator/KunstmaanGenerator.php b/src/Kunstmaan/GeneratorBundle/Generator/KunstmaanGenerator.php index 8b0f62ada9..9c725880fe 100644 --- a/src/Kunstmaan/GeneratorBundle/Generator/KunstmaanGenerator.php +++ b/src/Kunstmaan/GeneratorBundle/Generator/KunstmaanGenerator.php @@ -20,7 +20,7 @@ use Twig\Loader\FilesystemLoader; /** - * Contains all common generator logic. + * @internal */ class KunstmaanGenerator extends Generator { diff --git a/src/Kunstmaan/GeneratorBundle/Generator/LayoutGenerator.php b/src/Kunstmaan/GeneratorBundle/Generator/LayoutGenerator.php index 38ecab4815..0a55ce3699 100644 --- a/src/Kunstmaan/GeneratorBundle/Generator/LayoutGenerator.php +++ b/src/Kunstmaan/GeneratorBundle/Generator/LayoutGenerator.php @@ -5,7 +5,7 @@ use Symfony\Component\HttpKernel\Bundle\BundleInterface; /** - * Generates all layout files + * @internal */ class LayoutGenerator extends KunstmaanGenerator { diff --git a/src/Kunstmaan/GeneratorBundle/Generator/PageGenerator.php b/src/Kunstmaan/GeneratorBundle/Generator/PageGenerator.php index 0a167e2c38..caa035e917 100644 --- a/src/Kunstmaan/GeneratorBundle/Generator/PageGenerator.php +++ b/src/Kunstmaan/GeneratorBundle/Generator/PageGenerator.php @@ -5,7 +5,7 @@ use Symfony\Component\HttpKernel\Bundle\BundleInterface; /** - * Generates all classes/files for a new page + * @internal */ class PageGenerator extends KunstmaanGenerator { diff --git a/src/Kunstmaan/GeneratorBundle/Generator/PagePartGenerator.php b/src/Kunstmaan/GeneratorBundle/Generator/PagePartGenerator.php index 30231035a0..a86e58f407 100644 --- a/src/Kunstmaan/GeneratorBundle/Generator/PagePartGenerator.php +++ b/src/Kunstmaan/GeneratorBundle/Generator/PagePartGenerator.php @@ -11,7 +11,7 @@ use Symfony\Component\Yaml\Yaml; /** - * Generates all classes/files for a new pagepart + * @internal */ class PagePartGenerator extends KunstmaanGenerator { diff --git a/src/Kunstmaan/GeneratorBundle/Generator/SearchPageGenerator.php b/src/Kunstmaan/GeneratorBundle/Generator/SearchPageGenerator.php index 73b8570db3..9e6a40b6a4 100644 --- a/src/Kunstmaan/GeneratorBundle/Generator/SearchPageGenerator.php +++ b/src/Kunstmaan/GeneratorBundle/Generator/SearchPageGenerator.php @@ -10,8 +10,7 @@ use Symfony\Component\HttpKernel\Kernel; /** - * Generates a SearchPage using KunstmaanSearchBundle and - * KunstmaanNodeSearchBundle + * @internal */ class SearchPageGenerator extends \Sensio\Bundle\GeneratorBundle\Generator\Generator { diff --git a/src/Kunstmaan/GeneratorBundle/Helper/CommandAssistant.php b/src/Kunstmaan/GeneratorBundle/Helper/CommandAssistant.php index 38712e601f..653623ab35 100644 --- a/src/Kunstmaan/GeneratorBundle/Helper/CommandAssistant.php +++ b/src/Kunstmaan/GeneratorBundle/Helper/CommandAssistant.php @@ -10,6 +10,9 @@ use Symfony\Component\Console\Question\Question; use Symfony\Component\HttpKernel\Kernel; +/** + * @internal + */ class CommandAssistant { /** diff --git a/src/Kunstmaan/GeneratorBundle/Helper/GeneratorUtils.php b/src/Kunstmaan/GeneratorBundle/Helper/GeneratorUtils.php index a846d44ae6..67129ce44a 100644 --- a/src/Kunstmaan/GeneratorBundle/Helper/GeneratorUtils.php +++ b/src/Kunstmaan/GeneratorBundle/Helper/GeneratorUtils.php @@ -10,7 +10,7 @@ use Symfony\Component\HttpKernel\Kernel; /** - * GeneratorUtils + * @internal */ class GeneratorUtils { diff --git a/src/Kunstmaan/GeneratorBundle/Helper/InputAssistant.php b/src/Kunstmaan/GeneratorBundle/Helper/InputAssistant.php index b2362ff80b..e00cfb7625 100644 --- a/src/Kunstmaan/GeneratorBundle/Helper/InputAssistant.php +++ b/src/Kunstmaan/GeneratorBundle/Helper/InputAssistant.php @@ -12,6 +12,8 @@ /** * @deprecated the functions in this class should be moved to the KunstmaanGenerateCommand class + * + * @interal */ class InputAssistant {