Skip to content

Conversation

@mamazu
Copy link
Contributor

@mamazu mamazu commented Aug 18, 2025

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets -
Related issues/PRs sulu/sulu#7434
License MIT

What's in this PR?

Replacing rest routing with Symfony routing.

Other stuff needed to fix the pipeline:

  • phpstan baseline update
  • phpcs changes

Why?

It's not part of sulu anymore and will be removed in 3.0 anyways.

@mamazu mamazu force-pushed the replace-routing branch 2 times, most recently from d402723 to 422298a Compare August 18, 2025 12:49
@mamazu
Copy link
Contributor Author

mamazu commented Aug 18, 2025

@alexander-schranz If I would fix the codestyle for the 8.3 pipeline it would break the 7.x releases and I don't want to mix in a PHP update with this.

}

/** @phpstan-ignore-next-line */
$kernel = new Kernel($env, $debug, $suluContext);
Copy link
Member

@alexander-schranz alexander-schranz Aug 18, 2025

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@mamazu mamazu Aug 18, 2025

Choose a reason for hiding this comment

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

When I ran php bin/console.php it didn't set it properly. I think we just need a default. Copied the fix from the core. :D

Copy link
Member

@alexander-schranz alexander-schranz Aug 18, 2025

Choose a reason for hiding this comment

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

you need to run the specific console the .php isnt here to be called directly like in other bundles

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But falling back to the admin console like core sulu also does sounds reasonable I think.

Copy link
Member

Choose a reason for hiding this comment

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

we wanted no fallbacks in the test setups we wanted to have a clear diff between admin and console thats why no bin/console script exists in the bundles test setups ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's only just a matter of time until they get merged so I've removed the changes for now. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants