Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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'
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{ encore_entry_link_tags('factbox') }}

<div class="ibexa-factbox ibexa-factbox--{{ params.style }}">
<p>{{ params.name }}</p>
<div>
Expand Down
Original file line number Diff line number Diff line change
@@ -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'
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Encore.addStyleEntry('factbox', [
path.resolve(__dirname, './assets/scss/factbox.scss'),
]);
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Dispatcher;

use App\Message\SomeMessage;
use Ibexa\Bundle\Messenger\Stamp\DeduplicateStamp;
use Symfony\Component\Messenger\MessageBusInterface;

Expand All @@ -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.<key_based_on_message>';
$this->bus->dispatch($message, [new DeduplicateStamp($deduplicationKey)]);
$this->bus->dispatch(new SomeMessage(), [new DeduplicateStamp($deduplicationKey)]);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php declare(strict_types=1);

namespace App\Messenger;

use App\Message\SomeMessage;
use Ibexa\Contracts\Messenger\Transport\MessageProviderInterface;

final class SomeMessageProvider implements MessageProviderInterface
{
public function getHandledClasses(): iterable
{
return [SomeMessage::class];
}
}
4 changes: 2 additions & 2 deletions docs/administration/configuration/dynamic_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

## ConfigResolver

Dynamic configuration is handled by a ConfigResolver.
Dynamic configuration is handled by the [`ConfigResolverInterface`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-SiteAccess-ConfigResolverInterface.html).

Check notice on line 9 in docs/administration/configuration/dynamic_configuration.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/administration/configuration/dynamic_configuration.md#L9

[Ibexa.Passive] Try to avoid passive tense, when possible.
Raw output
{"message": "[Ibexa.Passive] Try to avoid passive tense, when possible.", "location": {"path": "docs/administration/configuration/dynamic_configuration.md", "range": {"start": {"line": 9, "column": 23}}}, "severity": "INFO"}

It exposes the `hasParameter()` and `getParameter()` methods.
You can use them to check the different *scopes* available for a given *namespace* to find the appropriate parameter.
Expand Down Expand Up @@ -68,7 +68,7 @@
arguments: ['@ibexa.config.resolver']
```

You can also use the [autowire feature]([[= symfony_doc =]]/service_container/autowiring.html), by type hinting against ConfigResolverInterface.
You can also use the [autowire feature]([[= symfony_doc =]]/service_container/autowiring.html), by type hinting against [`ConfigResolverInterface`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-SiteAccess-ConfigResolverInterface.html).

Check failure on line 71 in docs/administration/configuration/dynamic_configuration.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/administration/configuration/dynamic_configuration.md#L71

[Ibexa.Spellcheck] Did you really mean 'autowire'?
Raw output
{"message": "[Ibexa.Spellcheck] Did you really mean 'autowire'?", "location": {"path": "docs/administration/configuration/dynamic_configuration.md", "range": {"start": {"line": 71, "column": 23}}}, "severity": "ERROR"}

For more information about dependency injection, see [Service container](php_api.md#service-container).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ <h1 id="InvitationUpdateStruct">
<div class="content-header__found-in copy-to-clipboard" data-copy-value="vendor/ibexa/collaboration/src/contracts/Invitation/InvitationUpdateStruct.php">
<abbr title="vendor/ibexa/collaboration/src/contracts/Invitation/InvitationUpdateStruct.php">InvitationUpdateStruct.php</abbr>
:
<span title="at line 13">13</span>
<span title="at line 15">15</span>
<img src="./images/copy.svg" title="Copy path" />
</div>
<div class="content-header__subheader">Final</div>
Expand All @@ -251,6 +251,9 @@ <h1 id="InvitationUpdateStruct">
Extends <a href="classes/Ibexa-Contracts-Core-Repository-Values-ValueObject.html"><abbr title="\Ibexa\Contracts\Core\Repository\Values\ValueObject">ValueObject</abbr></a>
</div>

<div class="content-header__subheader">
Implements
<abbr title="\JMS\TranslationBundle\Translation\TranslationContainerInterface">TranslationContainerInterface</abbr> </div>

</div>
<p>The base class for all value objects and structs.</p>
Expand Down Expand Up @@ -287,7 +290,7 @@ <h3 id="method___construct">
<div class="content-header__found-in copy-to-clipboard" data-copy-value="vendor/ibexa/collaboration/src/contracts/Invitation/InvitationUpdateStruct.php">
<abbr title="vendor/ibexa/collaboration/src/contracts/Invitation/InvitationUpdateStruct.php">InvitationUpdateStruct.php</abbr>
:
<span title="at line 26">26</span>
<span title="at line 28">28</span>
<img src="./images/copy.svg" title="Copy path" />
</div>
</div>
Expand Down Expand Up @@ -364,7 +367,7 @@ <h3 id="method_getContext">
<div class="content-header__found-in copy-to-clipboard" data-copy-value="vendor/ibexa/collaboration/src/contracts/Invitation/InvitationUpdateStruct.php">
<abbr title="vendor/ibexa/collaboration/src/contracts/Invitation/InvitationUpdateStruct.php">InvitationUpdateStruct.php</abbr>
:
<span title="at line 53">53</span>
<span title="at line 55">55</span>
<img src="./images/copy.svg" title="Copy path" />
</div>
</div>
Expand Down Expand Up @@ -401,7 +404,7 @@ <h3 id="method_getStatus">
<div class="content-header__found-in copy-to-clipboard" data-copy-value="vendor/ibexa/collaboration/src/contracts/Invitation/InvitationUpdateStruct.php">
<abbr title="vendor/ibexa/collaboration/src/contracts/Invitation/InvitationUpdateStruct.php">InvitationUpdateStruct.php</abbr>
:
<span title="at line 37">37</span>
<span title="at line 39">39</span>
<img src="./images/copy.svg" title="Copy path" />
</div>
</div>
Expand Down Expand Up @@ -430,6 +433,43 @@ <h4>Return values</h4>
<p class="phpdocumentor-signature__response_type">string|null</p>


<div class="content-header">
<h3 id="method_getTranslationMessages">
<img src="./images/public.svg" alt="public" title="public" />getTranslationMessages()
<a class="headerlink" href="classes/Ibexa-Contracts-Collaboration-Invitation-InvitationUpdateStruct.html#method_getTranslationMessages" title="Permanent link">¶</a>
</h3>
<div class="content-header__found-in copy-to-clipboard" data-copy-value="vendor/ibexa/collaboration/src/contracts/Invitation/InvitationUpdateStruct.php">
<abbr title="vendor/ibexa/collaboration/src/contracts/Invitation/InvitationUpdateStruct.php">InvitationUpdateStruct.php</abbr>
:
<span title="at line 68">68</span>
<img src="./images/copy.svg" title="Copy path" />
</div>
</div>

<div class="highlight">
<table class="highlighttable">
<tbody>
<tr>
<td class="linenos">
<div class="linenodiv">
<pre><span></span></pre>
</div>
</td>
<td class="code">
<div>
<pre><code><span class="phpdocumentor-signature__visibility">public </span><span class="phpdocumentor-signature__static">static </span><span class="phpdocumentor-signature__name">getTranslationMessages</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code></pre>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="phpdocumentor-label-line">
</div>
<h4>Return values</h4>
<p class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</p>


<div class="content-header">
<h3 id="method_setContext">
<img src="./images/public.svg" alt="public" title="public" />setContext()
Expand All @@ -438,7 +478,7 @@ <h3 id="method_setContext">
<div class="content-header__found-in copy-to-clipboard" data-copy-value="vendor/ibexa/collaboration/src/contracts/Invitation/InvitationUpdateStruct.php">
<abbr title="vendor/ibexa/collaboration/src/contracts/Invitation/InvitationUpdateStruct.php">InvitationUpdateStruct.php</abbr>
:
<span title="at line 61">61</span>
<span title="at line 63">63</span>
<img src="./images/copy.svg" title="Copy path" />
</div>
</div>
Expand Down Expand Up @@ -500,7 +540,7 @@ <h3 id="method_setStatus">
<div class="content-header__found-in copy-to-clipboard" data-copy-value="vendor/ibexa/collaboration/src/contracts/Invitation/InvitationUpdateStruct.php">
<abbr title="vendor/ibexa/collaboration/src/contracts/Invitation/InvitationUpdateStruct.php">InvitationUpdateStruct.php</abbr>
:
<span title="at line 45">45</span>
<span title="at line 47">47</span>
<img src="./images/copy.svg" title="Copy path" />
</div>
</div>
Expand Down Expand Up @@ -678,6 +718,11 @@ <h5 class="phpdocumentor-tag-list__heading">
<a href="classes/Ibexa-Contracts-Collaboration-Invitation-InvitationUpdateStruct.html#method_getStatus" title="getStatus" class="md-nav__link">
getStatus()
</a>
</li>
<li class="md-nav__item level-2">
<a href="classes/Ibexa-Contracts-Collaboration-Invitation-InvitationUpdateStruct.html#method_getTranslationMessages" title="getTranslationMessages" class="md-nav__link">
getTranslationMessages()
</a>
</li>
<li class="md-nav__item level-2">
<a href="classes/Ibexa-Contracts-Collaboration-Invitation-InvitationUpdateStruct.html#method_setContext" title="setContext" class="md-nav__link">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ <h3 id="constant_VERSION">
</td>
<td class="code">
<div>
<pre><code><span class="phpdocumentor-signature__visibility">public </span><span class="phpdocumentor-signature__type">mixed </span><span class="phpdocumentor-signature__name">VERSION</span> = <span class="phpdocumentor-signature__default-value">&#039;4.6.31&#039;</span></code></pre>
<pre><code><span class="phpdocumentor-signature__visibility">public </span><span class="phpdocumentor-signature__type">mixed </span><span class="phpdocumentor-signature__name">VERSION</span> = <span class="phpdocumentor-signature__default-value">&#039;4.6.32&#039;</span></code></pre>
</div>
</td>
</tr>
Expand Down
Loading
Loading