Skip to content

Commit

Permalink
Merge pull request #3465 from acrobat/generator-bundle-internal
Browse files Browse the repository at this point in the history
[GeneratorBundle] Mark all generator classes as internal
  • Loading branch information
acrobat authored Nov 11, 2024
2 parents 5d81c28 + af915dd commit a512d77
Show file tree
Hide file tree
Showing 29 changed files with 37 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Symfony\Component\HttpKernel\Bundle\Bundle;

/**
* Generates a KunstmaanAdminList
* @internal
*/
class GenerateAdminListCommand extends GenerateDoctrineCommand
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Symfony\Component\Filesystem\Filesystem;

/**
* GenerateAdminTestsCommand
* @internal
*/
class GenerateAdminTestsCommand extends GeneratorCommand
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

/**
* Generates classes based on the AbstractArticle classes from KunstmaanArticleBundle
*
* @internal
*/
class GenerateArticleCommand extends KunstmaanGenerateCommand
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Symfony\Component\Filesystem\Filesystem;

/**
* Generates config files
* @internal
*/
class GenerateConfigCommand extends KunstmaanGenerateCommand
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Symfony\Component\HttpKernel\Bundle\BundleInterface;

/**
* Generates the default pageparts
* @internal
*/
class GenerateDefaultPagePartsCommand extends KunstmaanGenerateCommand
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Symfony\Component\HttpKernel\Bundle\BundleInterface;

/**
* Generates a default website based on Kunstmaan bundles
* @internal
*/
class GenerateDefaultSiteCommand extends KunstmaanGenerateCommand
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Symfony\Component\HttpKernel\Bundle\BundleInterface;

/**
* Generates a new formPage
* @internal
*/
class GenerateFormPageCommand extends KunstmaanGenerateCommand
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Symfony\Component\HttpKernel\Bundle\BundleInterface;

/**
* Generates the default form pageparts
* @internal
*/
class GenerateFormPagePartsCommand extends KunstmaanGenerateCommand
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\HttpKernel\Bundle\BundleInterface;

/**
* Generates de default layout
* @internal
*/
class GenerateLayoutCommand extends KunstmaanGenerateCommand
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\HttpKernel\Bundle\BundleInterface;

/**
* Generates a new page
* @internal
*/
class GeneratePageCommand extends KunstmaanGenerateCommand
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\HttpKernel\Bundle\BundleInterface;

/**
* Generates a new pagepart
* @internal
*/
class GeneratePagePartCommand extends KunstmaanGenerateCommand
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use Symfony\Component\Filesystem\Filesystem;

/**
* Generates a SearchPage based on the KunstmaanNodeSearchBundle
* @internal
*/
class GenerateSearchPageCommand extends GenerateDoctrineCommand
{
Expand Down
2 changes: 1 addition & 1 deletion src/Kunstmaan/GeneratorBundle/Command/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Symfony\Component\Process\Process;

/**
* Kunstmaan installer
* @internal
*/
final class InstallCommand extends GeneratorCommand
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
use Symfony\Component\Yaml\Exception\ParseException;
use Symfony\Component\Yaml\Yaml;

/**
* @internal
*/
abstract class KunstmaanGenerateCommand extends GenerateDoctrineCommand
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

/**
* Generates tests to test the admin backend generated by the default-site generator
*
* @interal
*/
class AdminTestsGenerator extends Generator
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Symfony\Component\HttpKernel\Kernel;

/**
* Generates an Article section
* @internal
*/
class ArticleGenerator extends KunstmaanGenerator
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Symfony\Component\Security\Http\Authenticator\AccessTokenAuthenticator;

/**
* Generates all config files
* @internal
*/
class ConfigGenerator extends KunstmaanGenerator
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Symfony\Component\Yaml\Yaml;

/**
* Generates all classes/files for a new pagepart
* @internal
*/
class DefaultPagePartGenerator extends KunstmaanGenerator
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

/**
* Generates a default website using several Kunstmaan bundles using default templates and assets
*
* @interal
*/
class DefaultSiteGenerator extends KunstmaanGenerator
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Symfony\Component\HttpKernel\Bundle\BundleInterface;

/**
* Generates all classes/files for a new formpage
* @internal
*/
class FormPageGenerator extends KunstmaanGenerator
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use Twig\Loader\FilesystemLoader;

/**
* Contains all common generator logic.
* @internal
*/
class KunstmaanGenerator extends Generator
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Symfony\Component\HttpKernel\Bundle\BundleInterface;

/**
* Generates all layout files
* @internal
*/
class LayoutGenerator extends KunstmaanGenerator
{
Expand Down
2 changes: 1 addition & 1 deletion src/Kunstmaan/GeneratorBundle/Generator/PageGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Symfony\Component\HttpKernel\Bundle\BundleInterface;

/**
* Generates all classes/files for a new page
* @internal
*/
class PageGenerator extends KunstmaanGenerator
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Symfony\Component\Yaml\Yaml;

/**
* Generates all classes/files for a new pagepart
* @internal
*/
class PagePartGenerator extends KunstmaanGenerator
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
3 changes: 3 additions & 0 deletions src/Kunstmaan/GeneratorBundle/Helper/CommandAssistant.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
use Symfony\Component\Console\Question\Question;
use Symfony\Component\HttpKernel\Kernel;

/**
* @internal
*/
class CommandAssistant
{
/**
Expand Down
2 changes: 1 addition & 1 deletion src/Kunstmaan/GeneratorBundle/Helper/GeneratorUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Symfony\Component\HttpKernel\Kernel;

/**
* GeneratorUtils
* @internal
*/
class GeneratorUtils
{
Expand Down
2 changes: 2 additions & 0 deletions src/Kunstmaan/GeneratorBundle/Helper/InputAssistant.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

/**
* @deprecated the functions in this class should be moved to the KunstmaanGenerateCommand class
*
* @interal
*/
class InputAssistant
{
Expand Down

0 comments on commit a512d77

Please sign in to comment.