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

Accept packages with new structure using xpdo3 #444

Merged
merged 3 commits into from
Dec 11, 2023

Conversation

muzzwood
Copy link
Contributor

@muzzwood muzzwood commented Dec 8, 2023

Using the new xPDO v3 style package structure relies on using the new options:

  • namespace
  • model

And class should be changed to the fully qualified class name.

As an example for CollectionSetting in the package Collections, you'd use the following:

collections_settings:
        namespace: Collections
        model: Collections\Model
        class: Collections\Model\CollectionSetting
        primary: id
        package: collections

You can also specify a custom path as before using package_path. Otherwise the new default will be used. The new default is src instead of model.
e.g.

core/components/package/src/

@muzzwood muzzwood linked an issue Dec 8, 2023 that may be closed by this pull request
@muzzwood
Copy link
Contributor Author

muzzwood commented Dec 9, 2023

Example for FormaliciousFieldType extract/build:

formalicious_fields_types:
        namespace: Sterc\Formalicious
        class: Sterc\Formalicious\Model\FormaliciousFieldType
        model: Sterc\Formalicious\Model
        primary: id
        package: formalicious

@muzzwood muzzwood marked this pull request as ready for review December 9, 2023 03:17
@muzzwood muzzwood merged commit 8954d7f into master Dec 11, 2023
@muzzwood muzzwood deleted the new-package-model-structure branch December 11, 2023 07:32
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.

Collections 4.0.0-pl not extractable any more
1 participant