Skip to content

Move AbstractLoader to Admin Bundle #7967

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

Merged
merged 3 commits into from
May 20, 2025

Conversation

alexander-schranz
Copy link
Member

@alexander-schranz alexander-schranz commented May 20, 2025

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

What's in this PR?

Move AbstractLoader to Admin Bundle.

Why?

We should make the admin bundle not longer depending on something outside of it, one step forward to it.

The AbstractLoader is only used by the Form Loader (already inside Admin Bundle) and the Structure Loader (part of component class should be removed before 3.0 release).

@alexander-schranz alexander-schranz added the Technical Debt Impacts code quality, no or just small impact on end developers and users label May 20, 2025
@alexander-schranz alexander-schranz marked this pull request as ready for review May 20, 2025 06:09
@alexander-schranz alexander-schranz force-pushed the enhancement/move-abstract-loader branch from a32313d to 7fd2453 Compare May 20, 2025 06:10
@@ -572,6 +573,14 @@ Removed unused arguments:
- `sulu_page.structure.properties_xml_parser`: `sulu_admin.properties_xml_parser`
- `sulu_page.structure.schema_xml_parser`: `sulu_admin.schema_xml_parser`

### Moved files for 3.0

- `src/Sulu/Component/Content/Metadata/Loader/schema/form-1.0.xsd` -> `src/Sulu/Bundle/AdminBundle/Resources/config/schema/form-1.0.xsd`
Copy link
Member Author

Choose a reason for hiding this comment

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

@wachterjohannes maybe requires changes in the deployment for the schemas

@alexander-schranz alexander-schranz force-pushed the enhancement/move-abstract-loader branch from e8fbe1a to 626f035 Compare May 20, 2025 06:34
@alexander-schranz alexander-schranz force-pushed the enhancement/move-abstract-loader branch from 626f035 to 7efc1b4 Compare May 20, 2025 06:34
@@ -35,7 +35,7 @@ class StructureFormMetadataLoaderTest extends TestCase
/**
* @var string
*/
public const CACHE_DIR = __DIR__ . '/../../../../../../../tests/Resources/cache';
public const CACHE_DIR = __DIR__ . '/../../../../../../../../tests/Resources/cache';
Copy link
Member Author

Choose a reason for hiding this comment

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

this class was moved and the path was not adopted which did end in creating a src/tests directory instead of resources/cache dir.

@alexander-schranz alexander-schranz force-pushed the enhancement/move-abstract-loader branch from 44b404e to 9746ce4 Compare May 20, 2025 06:56
@@ -27,7 +27,7 @@ class XmlFormMetadataLoaderTest extends TestCase
{
use ProphecyTrait;

public const CACHE_DIR = __DIR__ . '/../../../../../../../tests/Resources/cache';
public const CACHE_DIR = __DIR__ . '/../../../../../../../../tests/Resources/cache';
Copy link
Member Author

Choose a reason for hiding this comment

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

same as above class was previously moved without adjusting the path

@Prokyonn Prokyonn merged commit 146ee0c into sulu:3.0 May 20, 2025
9 checks passed
@alexander-schranz alexander-schranz deleted the enhancement/move-abstract-loader branch May 20, 2025 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Technical Debt Impacts code quality, no or just small impact on end developers and users
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants