-
Notifications
You must be signed in to change notification settings - Fork 9
IBX-10827: Added option to extend ezpublish.rng schema #281
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
base: main
Are you sure you want to change the base?
Conversation
|
| use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; | ||
| use Symfony\Component\DependencyInjection\ContainerBuilder; | ||
|
|
||
| final class RichTextDocbookSchemaPass implements CompilerPassInterface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| final class RichTextDocbookSchemaPass implements CompilerPassInterface | |
| final readonly class RichTextDocbookSchemaPass implements CompilerPassInterface |
| # Schema fragments to include (paths to RNG files) | ||
| ibexa.field_type.richtext.docbook.schema_fragments: [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed if CompilerPass fallbacks to an empty array?
|
|
||
| $dir = dirname($outputPath); | ||
| if (!is_dir($dir)) { | ||
| mkdir($dir, 0777, true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aren't those permissions too forgiving? Maybe after saving the file we should change those to 644. It just raises an eyebrow when looking at "7" passed as permission.



Description:
Configuration Example
In a custom bundle's config
How It Works
Example output rng
For QA:
Documentation: