Skip to content
Draft
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
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ jobs:
TOKEN: ${{ secrets.EZROBOT_PAT }}
run: |
curl -H "Authorization: token $TOKEN" -L https://github.com/ibexa/vale-styles/archive/refs/heads/main.zip -o vale.zip
rm -rf tests
unzip vale.zip
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Keep archive removal

Suggested change
unzip vale.zip
unzip vale.zip
rm vale.zip

rm vale.zip
mv vale-styles-main/* vale-styles-main/.vale.ini .

- name: Run Vale.sh
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/code_samples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ jobs:
- name: Run Rector check
run: composer check-rector

- name: Run PHPUnit tests
run: composer phpunit

code-samples-inclusion-check:
name: Check code samples inclusion
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ auth.json
yarn.lock
docs/css/*.map
.deptrac.cache
.phpunit.result.cache
1 change: 0 additions & 1 deletion code_samples/back_office/components/twig_components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ ibexa_twig_components:
priority: 0
arguments:
content: '<b>Hello world!</b>'
admin-ui-user-menu:
duplicated_user_menu:
type: menu
arguments:
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ framework:
to:
- dropped

// ...
# ...

ibexa:
repositories:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
$domain: <translation_domain>
tags:
- { name: ibexa.payment.payment_method.type, alias: new_payment_method_type }
services:

App\Payment\PaymentMethod\Voter\NewPaymentMethodTypeVoter:
tags:
- { name: ibexa.payment.payment_method.voter, type: new_payment_method_type }
- { name: ibexa.payment.payment_method.voter, type: new_payment_method_type }
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ ibexa:
<scope>:
connector_raptor:
enabled: true
customer_id: ~ # Required
customer_id: "12345" # Required
tracking_type: client # One of: "client" or "server"

# Raptor Recommendations API key
recommendations_api_key: ~ # Required
recommendations_api_key: "your_api_key_here" # Required

# Raptor Recommendations API URL, optional, set by default
recommendations_api_url: '%ibexa.connector.raptor.recommendations.api_url%'
# Raptor Recommendations API URI, optional, set by default
recommendations_api_uri: '%ibexa.connector.raptor.recommendations.api_uri%'
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Typo!

ibexa_connector_raptor:
# When enabled, tracking exceptions are thrown instead of being silently handled
strict_exceptions: true
25 changes: 21 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"type": "library",
"license": "GNU General Public License v2.0",
"autoload-dev": {
"psr-4": {
"Ibexa\\Tests\\Documentation\\": "tests/"
}
},
"repositories": [
{
Expand All @@ -15,6 +18,9 @@
"php": "^8.3"
},
"require-dev": {
"phpunit/phpunit": "^11.0",
"symfony/yaml": "^7.0",
"ibexa/connector-gemini": "5.0.x-dev",
"ibexa/automated-translation": "5.0.x-dev",
"ibexa/code-style": "~2.0.0",
"friendsofphp/php-cs-fixer": "^3.30",
Expand Down Expand Up @@ -51,7 +57,7 @@
"ibexa/page-builder": "5.0.x-dev",
"ibexa/order-management": "5.0.x-dev",
"ibexa/calendar": "5.0.x-dev",
"ibexa/payment": "5.0.x-dev",
"ibexa/payment": "~5.0.x-dev",
"ibexa/shipping": "5.0.x-dev",
"ibexa/fieldtype-matrix": "5.0.x-dev",
"ibexa/storefront": "5.0.x-dev",
Expand Down Expand Up @@ -85,21 +91,32 @@
"ibexa/cdp": "~5.0.x-dev",
"ibexa/connector-raptor": "~5.0.x-dev",
"ibexa/image-editor": "~5.0.x-dev",
"ibexa/integrated-help": "~5.0.x-dev"
"ibexa/integrated-help": "~5.0.x-dev",
"ibexa/site-context": "~5.0.x-dev",
"ibexa/fieldtype-richtext-rte": "~5.0.x-dev",
"ibexa/site-factory": "~5.0.x-dev",
"ibexa/ckeditor-premium": "~5.0.x-dev",
"ibexa/measurement": "~5.0.x-dev",
"ibexa/connector-actito": "~5.0.x-dev",
"ibexa/fastly": "~5.0.x-dev"
},
"scripts": {
"fix-cs": "php-cs-fixer fix --config=.php-cs-fixer.php -v --show-progress=dots",
"check-cs": "@fix-cs --dry-run",
"phpstan": "phpstan analyse",
"deptrac": "deptrac analyse",
"check-rector": "rector process --dry-run --ansi"
"check-rector": "rector process --dry-run --ansi",
"phpunit": "phpunit",
"phpunit-update-baseline": "php tests/generate-yaml-baseline.php"
},
"scripts-descriptions": {
"fix-cs": "Automatically fixes code style in all files",
"check-cs": "Run code style checker for all files",
"phpstan": "Run static code analysis",
"deptrac": "Run Deptrac architecture testing",
"check-rector": "Check for code refactoring opportunities"
"check-rector": "Check for code refactoring opportunities",
"phpunit": "Run PHPUnit tests (YAML validation)",
"phpunit-update-baseline": "Regenerate tests/yaml-validation-baseline.yaml from current failures"
},
"config": {
"allow-plugins": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ ibexa:
system:
<scope>:
search:
min_query_length: 3
result_limit: 5
suggestion:
min_query_length: 3
result_limit: 5
```
## Add custom suggestion source
Expand Down
2 changes: 1 addition & 1 deletion docs/administration/configuration/dynamic_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ parameters:
# Internal configuration
ibexa.site_access.config.default.content.default_ttl: 60
ibexa.site_access.config.site_group.content.default_ttl: 3600
 

# Here "myapp" is the namespace, followed by the SiteAccess name as the parameter scope
# Parameter "my_param" will have a different value in site_group and admin_group
myapp.site_group.my_param: value
Expand Down
6 changes: 3 additions & 3 deletions docs/api/graphql/graphql_customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ Mutation:
createSomething:
builder: Mutation
builderConfig:
inputType: CreateSomethingInput
payloadType: SomethingPayload
mutateAndGetPayload: '@=mutation('CreateSomething', [value])'
inputType: CreateSomethingInput
payloadType: SomethingPayload
mutateAndGetPayload: "@=mutation('CreateSomething', [value])"
CreateSomethingInput:
type: relay-mutation-input
Expand Down
5 changes: 5 additions & 0 deletions docs/api/rest_api/rest_api_authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,15 @@ For more information, see [HTTP Authentication: Basic and Digest Access Authenti
If the installation has a dedicated host for REST, you can enable HTTP basic authentication only on this host by setting a firewall like in the following example before the `ibexa_front` one:

```yaml
security:
firewalls:
# ...
ibexa_rest:
host: ^api\.example\.com$
http_basic:
realm: Ibexa DXP REST API
#ibexa_front:
# ...
```

!!! caution "Back office uses REST API"
Expand Down
13 changes: 8 additions & 5 deletions docs/cdp/cdp_installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,14 @@ Symfony Flex installs and activates the package.
After an installation process is finished, go to `config/packages/security.yaml` and uncomment `ibexa_cdp` rule.

```yaml
ibexa_cdp:
pattern: /cdp/webhook
guard:
authenticator: 'Ibexa\Cdp\Security\CdpRequestAuthenticator'
stateless: true
security:
firewalls:
# ...
ibexa_cdp:
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Was outdated - stolen from configuration provided when installing the project

request_matcher: Ibexa\Cdp\Security\RequestMatcher
custom_authenticators:
- 'Ibexa\Cdp\Security\CdpRequestAuthenticator'
stateless: true
```

Now, you can configure [[= product_name_cdp =]].
Expand Down
4 changes: 2 additions & 2 deletions docs/commerce/checkout/reorder.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ framework:
places:
!php/const Ibexa\OrderManagement\Value\Status::COMPLETED_PLACE:
metadata:
...
# ...
can_be_reordered: true
!php/const Ibexa\OrderManagement\Value\Status::CANCELLED_PLACE:
metadata:
...
# ...
can_be_reordered: true

```
Expand Down
1 change: 0 additions & 1 deletion docs/commerce/payment/enable_paypal_payments.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,4 @@ ibexa:
type:
pp_express_checkout:
name: "Translated PayPal Express Checkout name"
```
1 change: 0 additions & 1 deletion docs/commerce/payment/enable_stripe_payments.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,4 @@ ibexa:
type:
strp_checkout:
name: "Translated Stripe Checkout name"

```
2 changes: 1 addition & 1 deletion docs/commerce/payment/payum_integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ ibexa_connector_payum:
refunded: cancelled
captured: pending
authorized: authorized
[...]
# ...
```

## Payment service name translations
Expand Down
7 changes: 4 additions & 3 deletions docs/commerce/storefront/configure_storefront.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,10 @@ Settings for a Storefront user are configured under the `ibexa.system.<scope>.st
ibexa:
system:
site_group:
user_settings_groups:
- location
- custom_group
storefront:
user_settings_groups:
- location
- custom_group
```

By default, only the `location` user settings is provided:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,15 @@ security:
```yaml
security:
# ...
ibexa_shareable_link:
request_matcher: Ibexa\Collaboration\Security\RequestMatcher\ShareableLinkRequestMatcher
pattern: ^/
provider: shared
stateless: true
user_checker: Ibexa\Core\MVC\Symfony\Security\UserChecker
custom_authenticators:
- Ibexa\Collaboration\Security\Authenticator\ShareableLinkAuthenticator
firewalls:
ibexa_shareable_link:
request_matcher: Ibexa\Collaboration\Security\RequestMatcher\ShareableLinkRequestMatcher
pattern: ^/
provider: shared
stateless: true
user_checker: Ibexa\Core\MVC\Symfony\Security\UserChecker
custom_authenticators:
- Ibexa\Collaboration\Security\Authenticator\ShareableLinkAuthenticator
```

### Configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ You can configure a different folder by using the following settings:

``` yaml
ibexa_migrations:
migration_directory: %kernel.project_dir%/src/Migrations/MyMigrations/
migration_directory: '%kernel.project_dir%/src/Migrations/MyMigrations/'
migrations_files_subdir: migration_files
```

Expand All @@ -64,7 +64,6 @@ ibexa_migrations:
``` yaml
ibexa_migrations:
migration_directory: '%kernel.project_dir%/data/<repository>'
...
```

Then, when you run the migration command, you must use the [`--siteaccess` option](exporting_data.md#siteaccess) and provide the name of the SiteAccess that you want to migrate.
Expand Down
2 changes: 1 addition & 1 deletion docs/content_management/field_types/field_type_storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ services:
autoconfigure: true
public: false
App\FieldType\MyField\Storage\MyFieldStorage: ~
App\FieldType\MyField\Storage\MyFieldStorage:
tags:
- {name: ibexa.field_type.storage.external.handler, alias: myfield}
```
Expand Down
2 changes: 1 addition & 1 deletion docs/content_management/field_types/form_and_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ If you don't use the design engine, apply the following configuration:

``` yaml
ibexa:
systems:
system:
admin_group:
field_templates:
- { template: 'adminui/field/custom_field_view.html.twig', priority: 10 }
Expand Down
18 changes: 9 additions & 9 deletions docs/content_management/images/add_image_asset_from_dam.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ Next, in `config/packages/ibexa.yaml`, set the `dam.html.twig` template for the
For more information about displaying content, see [Content rendering](render_content.md).

``` yaml
ibexa:
system:
site:
content_view:
embed:
image_dam:
template: '@ibexadesign/embed/dam.html.twig'
match:
Identifier\ContentType: <dam_image_content_type_identifier>
ibexa:
system:
site:
content_view:
embed:
image_dam:
template: '@ibexadesign/embed/dam.html.twig'
match:
Identifier\ContentType: <dam_image_content_type_identifier>
```

In your [configuration file](configuration.md#configuration-files) add the following configuration:
Expand Down
5 changes: 2 additions & 3 deletions docs/content_management/taxonomy/taxonomy.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,9 @@ By default, the system returns three suggestions.
You can change the default number if needed by altering the following setting:

``` yaml hl_lines="4"
ibexa:
taxonomy:
ibexa_taxonomy:
text_to_taxonomy:
default_suggested_taxonomies_limit: 5
default_suggested_taxonomies_limit: 5
```

You can also override this setting per AI action by editing its configuration.
Expand Down
11 changes: 5 additions & 6 deletions docs/content_management/url_management/url_management.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ ibexa:
url_checker:
handlers:
http:
enabled: true
batch_size: 64
enabled: true
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This sample had mixed tabs and spaces

batch_size: 64
https:
enabled: true
ignore_certificate: false
enabled: true
ignore_certificate: false
mailto:
enabled: false
enabled: false
```

Available options are protocol-specific.
Expand Down Expand Up @@ -128,7 +128,6 @@ Then you must register the service with an `ibexa.url_checker.handler` tag, like
```yaml
app.url_checker.handler.custom:
class: 'App\URLChecker\Handler\CustomHandler'
...
tags:
- { name: ibexa.url_checker.handler, scheme: custom }
```
Expand Down
Loading
Loading