diff --git a/code_samples/back_office/online_editor/custom_tags/factbox/config/packages/custom_tags.yaml b/code_samples/back_office/online_editor/custom_tags/factbox/config/packages/custom_tags.yaml index 5498c9327ab..f489ee33868 100644 --- a/code_samples/back_office/online_editor/custom_tags/factbox/config/packages/custom_tags.yaml +++ b/code_samples/back_office/online_editor/custom_tags/factbox/config/packages/custom_tags.yaml @@ -1,25 +1,31 @@ -ibexa: - system: - admin_group: - fieldtypes: - ezrichtext: - custom_tags: [factbox] - toolbar: - custom_tags_group: - buttons: - factbox: - priority: 5 ibexa_fieldtype_richtext: custom_tags: factbox: template: '@ibexadesign/field_type/ezrichtext/custom_tags/factbox.html.twig' - icon: '/bundles/ibexaicons/img/all-icons.svg#information' + icon: '/bundles/ibexaicons/img/all-icons.svg#information' # Optional + is_inline: false # Optional + label: 'Factbox custom tag' # Optional + description: 'Highlight a piece of information in a box' # Optional attributes: name: type: string - required: true + required: true # Optional + label: 'My name attribute' # Optional style: type: choice - required: true + required: true # Optional default_value: light choices: [light, dark] + label: 'My style attribute' # Optional + +ibexa: + system: + admin_group: + fieldtypes: + ezrichtext: + custom_tags: [factbox] + toolbar: + custom_tags_group: + buttons: + factbox: + priority: 5 diff --git a/code_samples/back_office/online_editor/custom_tags/factbox/config/packages/jms_translation.yaml b/code_samples/back_office/online_editor/custom_tags/factbox/config/packages/jms_translation.yaml new file mode 100644 index 00000000000..879ff7b8a09 --- /dev/null +++ b/code_samples/back_office/online_editor/custom_tags/factbox/config/packages/jms_translation.yaml @@ -0,0 +1,9 @@ +jms_translation: + configs: + app_translation_config: + dirs: ['%kernel.project_dir%/src'] + output_dir: '%kernel.project_dir%/translations' + output_format: yaml + extractors: + - 'app.translation_extractor.factbox' + - 'app.translation_extractor.factbox_choice' diff --git a/code_samples/back_office/online_editor/custom_tags/factbox/config/services.yaml b/code_samples/back_office/online_editor/custom_tags/factbox/config/services.yaml new file mode 100644 index 00000000000..8f0617624a7 --- /dev/null +++ b/code_samples/back_office/online_editor/custom_tags/factbox/config/services.yaml @@ -0,0 +1,20 @@ +services: + app.extractor.custom_tag: + class: Ibexa\FieldTypeRichText\Translation\Extractor\CustomTagExtractor + arguments: + $customTags: '%ibexa.field_type.richtext.custom_tags%' + $domain: '%ibexa.field_type.richtext.custom_tags.translation_domain%' + $allowlist: ['factbox'] + tags: + - name: jms_translation.extractor + alias: app.translation_extractor.factbox + + app.extractor.custom_tag_choice: + class: Ibexa\FieldTypeRichText\Translation\Extractor\ChoiceAttributeExtractor + arguments: + $customTags: '%ibexa.field_type.richtext.custom_tags%' + $domain: '%ibexa.field_type.richtext.custom_tags.translation_domain%' + $allowlist: ['factbox'] + tags: + - name: jms_translation.extractor + alias: app.translation_extractor.factbox_choice diff --git a/code_samples/back_office/online_editor/custom_tags/factbox/templates/themes/standard/field_type/ezrichtext/custom_tags/factbox.html.twig b/code_samples/back_office/online_editor/custom_tags/factbox/templates/themes/standard/field_type/ezrichtext/custom_tags/factbox.html.twig index 6ffaabc1d13..7a8170e35f2 100644 --- a/code_samples/back_office/online_editor/custom_tags/factbox/templates/themes/standard/field_type/ezrichtext/custom_tags/factbox.html.twig +++ b/code_samples/back_office/online_editor/custom_tags/factbox/templates/themes/standard/field_type/ezrichtext/custom_tags/factbox.html.twig @@ -1,3 +1,5 @@ +{{ encore_entry_link_tags('factbox') }} +

{{ params.name }}

diff --git a/code_samples/back_office/online_editor/custom_tags/factbox/translations/custom_tags.en.yaml b/code_samples/back_office/online_editor/custom_tags/factbox/translations/custom_tags.en.yaml index 8c503b5dcf7..91f9249cd1a 100644 --- a/code_samples/back_office/online_editor/custom_tags/factbox/translations/custom_tags.en.yaml +++ b/code_samples/back_office/online_editor/custom_tags/factbox/translations/custom_tags.en.yaml @@ -1,3 +1,6 @@ ezrichtext.custom_tags.factbox.label: 'Factbox' +ezrichtext.custom_tags.factbox.description: 'Highlight a piece of information in a box' ezrichtext.custom_tags.factbox.attributes.name.label: 'Name' ezrichtext.custom_tags.factbox.attributes.style.label: 'Style' +ezrichtext.custom_tags.factbox.attributes.style.choice.dark.label: 'Dark' +ezrichtext.custom_tags.factbox.attributes.style.choice.light.label: 'Light' diff --git a/code_samples/back_office/online_editor/custom_tags/factbox/webpack.config.js b/code_samples/back_office/online_editor/custom_tags/factbox/webpack.config.js new file mode 100644 index 00000000000..2e3c25d081d --- /dev/null +++ b/code_samples/back_office/online_editor/custom_tags/factbox/webpack.config.js @@ -0,0 +1,3 @@ +Encore.addStyleEntry('factbox', [ + path.resolve(__dirname, './assets/scss/factbox.scss'), +]); diff --git a/code_samples/background_tasks/src/Dispatcher/SomeClassThatSchedulesExecutionInTheBackground.php b/code_samples/background_tasks/src/Dispatcher/SomeClassThatSchedulesExecutionInTheBackground.php index 37c7fe63013..c1f55af8a67 100644 --- a/code_samples/background_tasks/src/Dispatcher/SomeClassThatSchedulesExecutionInTheBackground.php +++ b/code_samples/background_tasks/src/Dispatcher/SomeClassThatSchedulesExecutionInTheBackground.php @@ -2,6 +2,7 @@ namespace App\Dispatcher; +use App\Message\SomeMessage; use Ibexa\Bundle\Messenger\Stamp\DeduplicateStamp; use Symfony\Component\Messenger\MessageBusInterface; @@ -14,11 +15,11 @@ public function __construct(MessageBusInterface $bus) $this->bus = $bus; } - public function schedule(object $message): void + public function schedule(): void { - $this->bus->dispatch($message); + $this->bus->dispatch(new SomeMessage()); $deduplicationKey = 'my_message.project.'; - $this->bus->dispatch($message, [new DeduplicateStamp($deduplicationKey)]); + $this->bus->dispatch(new SomeMessage(), [new DeduplicateStamp($deduplicationKey)]); } } diff --git a/code_samples/background_tasks/src/Messenger/SomeMessageProvider.php b/code_samples/background_tasks/src/Messenger/SomeMessageProvider.php new file mode 100644 index 00000000000..98f53c7123c --- /dev/null +++ b/code_samples/background_tasks/src/Messenger/SomeMessageProvider.php @@ -0,0 +1,14 @@ +
InvitationUpdateStruct.php : - 13 + 15
Final
@@ -251,6 +251,9 @@

Extends ValueObject

+
+ Implements + TranslationContainerInterface

The base class for all value objects and structs.

@@ -287,7 +290,7 @@

InvitationUpdateStruct.php : - 26 + 28
@@ -364,7 +367,7 @@

InvitationUpdateStruct.php : - 53 + 55
@@ -401,7 +404,7 @@

InvitationUpdateStruct.php : - 37 + 39
@@ -430,6 +433,43 @@

Return values

string|null

+
+

+ publicgetTranslationMessages() + +

+
+ InvitationUpdateStruct.php + : + 68 + +
+
+ +
+ + + + + + + +
+
+
+
+
+
+
public static getTranslationMessages() : array<string|int, mixed>
+
+
+
+
+
+

Return values

+

array<string|int, mixed>

+ +

publicsetContext() @@ -438,7 +478,7 @@

InvitationUpdateStruct.php : - 61 + 63

@@ -500,7 +540,7 @@

InvitationUpdateStruct.php : - 45 + 47
@@ -678,6 +718,11 @@

getStatus() + +
  • + + getTranslationMessages() +
  • diff --git a/docs/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Ibexa.html b/docs/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Ibexa.html index 3ecedd3b775..830069d909b 100644 --- a/docs/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Ibexa.html +++ b/docs/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Ibexa.html @@ -284,7 +284,7 @@

    -
    public mixed VERSION = '4.6.31'
    +
    public mixed VERSION = '4.6.32'
    diff --git a/docs/api/php_api/php_api_reference/classes/Ibexa-Contracts-DoctrineSchema-Database-DatabasePlatformName.html b/docs/api/php_api/php_api_reference/classes/Ibexa-Contracts-DoctrineSchema-Database-DatabasePlatformName.html new file mode 100644 index 00000000000..86923b7af13 --- /dev/null +++ b/docs/api/php_api/php_api_reference/classes/Ibexa-Contracts-DoctrineSchema-Database-DatabasePlatformName.html @@ -0,0 +1,486 @@ + + + + + DatabasePlatformName | PHP API Reference (Ibexa Documentation) + + + + + + + + + + + + + + + + +
    Copied!
    + + + + +
    + +
    + + + +
    +
    +
    + + + + + + + + +
    +
    +
    + + + +
    +
    + + +
    +

    + DatabasePlatformName

    + +
    + DatabasePlatformName.php + : + 16 + +
    +
    Final
    + + + +
    +

    Database platform identifiers recognized by {@see DatabasePlatformResolver}.

    + + +
    +

    Provided as class constants rather than an enum for PHP 7.4 compatibility.

    + +
    + + + + + + + + + + +

    + Constants +

    +
    +

    + publicMYSQL +

    +
    + DatabasePlatformName.php + : + 18 + +
    +
    + +
    + + + + + + + +
    +
    +
    +
    +
    +
    +
    public mixed MYSQL = 'mysql'
    +
    +
    +
    + + +
    +

    + publicPOSTGRESQL +

    +
    + DatabasePlatformName.php + : + 20 + +
    +
    + +
    + + + + + + + +
    +
    +
    +
    +
    +
    +
    public mixed POSTGRESQL = 'postgresql'
    +
    +
    +
    + + +
    +

    + publicSQLITE +

    +
    + DatabasePlatformName.php + : + 22 + +
    +
    + +
    + + + + + + + +
    +
    +
    +
    +
    +
    +
    public mixed SQLITE = 'sqlite'
    +
    +
    +
    + + + + +

    + Methods +

    + +
    +

    + publicall() + +

    +
    + DatabasePlatformName.php + : + 32 + +
    +
    + +
    + + + + + + + +
    +
    +
    +
    +
    +
    +
    public static all() : array<string|int, string>
    +
    +
    +
    +
    +
    +

    Return values

    +

    array<string|int, string>

    + + +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    + + + + + + + + + + + diff --git a/docs/api/php_api/php_api_reference/classes/Ibexa-Contracts-DoctrineSchema-Database-DatabasePlatformResolver.html b/docs/api/php_api/php_api_reference/classes/Ibexa-Contracts-DoctrineSchema-Database-DatabasePlatformResolver.html new file mode 100644 index 00000000000..ed2c0273644 --- /dev/null +++ b/docs/api/php_api/php_api_reference/classes/Ibexa-Contracts-DoctrineSchema-Database-DatabasePlatformResolver.html @@ -0,0 +1,397 @@ + + + + + DatabasePlatformResolver | PHP API Reference (Ibexa Documentation) + + + + + + + + + + + + + + + + +
    Copied!
    + + + + +
    + +
    + + + +
    +
    +
    + + + + + + + + +
    +
    +
    + + + +
    +
    + + +
    +

    + DatabasePlatformResolver

    + +
    + DatabasePlatformResolver.php + : + 19 + +
    +
    Final
    + + + +
    +

    Resolves a Doctrine database platform to one of the {@see DatabasePlatformName} identifiers, +or null if it is not one of the recognized platforms.

    + + +
    +

    Replaces the DBAL 3.10-deprecated and DBAL 4-removed AbstractPlatform::getName().

    + +
    + + + + + + + + + + + + +

    + Methods +

    + +
    +

    + publicresolveName() + +

    +
    + DatabasePlatformResolver.php + : + 59 + +
    +
    + +
    + + + + + + + +
    +
    +
    +
    +
    +
    +
    public static resolveName(AbstractPlatform $platform) : string|null
    +
    +
    +
    +
    +
    +

    Parameters

    + + + + + + + + + + + + + + + + + +
    NameTypeDefault valueDescription
    + $platform + + AbstractPlatform + + - + + - +
    +

    Return values

    +

    string|null

    +
    +

    one of the DatabasePlatformName constants, or null if unrecognized

    + +
    + + + +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    + + + + + + + + + + + diff --git a/docs/api/php_api/php_api_reference/classes/Ibexa-Contracts-Messenger-Stamp-SiteAccessStamp.html b/docs/api/php_api/php_api_reference/classes/Ibexa-Contracts-Messenger-Stamp-SiteAccessStamp.html new file mode 100644 index 00000000000..94307c41eea --- /dev/null +++ b/docs/api/php_api/php_api_reference/classes/Ibexa-Contracts-Messenger-Stamp-SiteAccessStamp.html @@ -0,0 +1,495 @@ + + + + + SiteAccessStamp | PHP API Reference (Ibexa Documentation) + + + + + + + + + + + + + + + + +
    Copied!
    + + + + +
    + +
    + + + +
    +
    +
    + + + + + + + + +
    +
    +
    + + + +
    +
    + + +
    +

    + SiteAccessStamp

    + +
    + SiteAccessStamp.php + : + 16 + +
    +
    Final
    + + +
    + Implements + StampInterface
    + +
    + + + + +
    + Tags + + +
    +
    +
    + Readonly +
    +
    + +
    +
    + + + + + + + + + +

    + Properties +

    + +
    +

    + public + $siteAccess + + +

    +
    + SiteAccessStamp.php + : + 18 + +
    +
    + +
    + + + + + + + +
    +
    +
    +
    +
    +
    +
    public string $siteAccess
    +
    +
    +
    + + + + +

    + Methods +

    + +
    +

    + public__construct() + +

    +
    + SiteAccessStamp.php + : + 20 + +
    +
    + +
    + + + + + + + +
    +
    +
    +
    +
    +
    +
    public __construct(string $siteAccess)
    +
    +
    +
    +
    +
    +

    Parameters

    + + + + + + + + + + + + + + + + + +
    NameTypeDefault valueDescription
    + $siteAccess + + string + + - + + - +
    + + +
    +

    + publicgetSiteAccess() + +

    +
    + SiteAccessStamp.php + : + 26 + +
    +
    + +
    + + + + + + + +
    +
    +
    +
    +
    +
    +
    public getSiteAccess() : string
    +
    +
    +
    +
    +
    +

    Return values

    +

    string

    + + +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    + + + + + + + + + + + diff --git a/docs/api/php_api/php_api_reference/index.html b/docs/api/php_api/php_api_reference/index.html index 79f35005601..5dc7577561f 100644 --- a/docs/api/php_api/php_api_reference/index.html +++ b/docs/api/php_api/php_api_reference/index.html @@ -26865,6 +26865,52 @@
  • + +
  • + + +
  • + +