Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add own Website ContentController to render Content #262

Conversation

alexander-schranz
Copy link
Member

@alexander-schranz alexander-schranz commented Jul 30, 2024

What do you think to already create a controller inside the ContentBundle. This should make upgrading projects easier later as we don't need to adjust the controllers in the .xml files.

Not sure about the name:

  • DefaultController (I personally find it to general)
  • WebsiteController (already in the Website namespace)
  • CmsController (we never used Cms in our code yet)
  • TemplateController (controller should in future also handle JSON still it configured in a Sulu template, so still would be fine for me)
  • ContentController

@coveralls
Copy link

coveralls commented Jul 30, 2024

Pull Request Test Coverage Report for Build 10159184588

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 10078171083: 0.0%
Covered Lines: 2526
Relevant Lines: 2526

💛 - Coveralls

@alexander-schranz alexander-schranz added the Feature New functionality not yet included in Bundle label Jul 30, 2024
* TODO this controller will later replace the DefaultController of the WebsiteBundle
* and should be base for all content controllers.
*/
class ContentController extends DefaultController
Copy link
Member Author

@alexander-schranz alexander-schranz Jul 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about the name:

  • DefaultController (I personally find it to general)
  • WebsiteController (already in the Website namespace)
  • CmsController (we never used Cms in our code yet)
  • TemplateController (controller should in future also handle JSON still it configured in a Sulu template, so still would be fine for me)
  • ContentController

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ContentController sounds good for me

@alexander-schranz alexander-schranz changed the title Add WebsiteController to render Content Add own Website ContentController to render Content Jul 30, 2024
@alexander-schranz alexander-schranz force-pushed the feature/introduce-content-controller branch from f6faa64 to 8f8ab2e Compare July 30, 2024 08:48
@alexander-schranz alexander-schranz merged commit 0f2d107 into sulu:0.8 Jul 30, 2024
7 checks passed
@alexander-schranz alexander-schranz deleted the feature/introduce-content-controller branch July 30, 2024 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New functionality not yet included in Bundle
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants