Skip to content

Commit 5150030

Browse files
committed
Use new skip-validation attribute
1 parent 382f520 commit 5150030

19 files changed

Lines changed: 40 additions & 40 deletions

File tree

docs/administration/configuration/dynamic_configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ parameters:
2929
3030
Inside a controller extending the `Ibexa\Core\MVC\Symfony\Controller\Controller` class, in `site_group` SiteAccess, you can use the parameters in the following way (the same applies for `hasParameter()`):
3131

32-
``` php skip-validation
32+
``` php {skip-validation}
3333
$configResolver = $this->getConfigResolver();
3434
3535
// ibexa.site_access.config is the default namespace, so no need to specify it

docs/api/graphql/graphql_custom_ft.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ If not specified, it uses `FieldDefinition`.
4040

4141
Compiler pass example that should be placed in `src/DependencyInjection/Compiler`:
4242

43-
``` php skip-validation
43+
``` php {skip-validation}
4444
[[= include_file('code_samples/api/graphql/src/DependencyInjection/Compiler/MyCustomTypeGraphQLCompilerPass.php') =]]
4545
```
4646

docs/content_management/field_types/field_type_reference/authorfield.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The hash format mostly matches the value object. It has the following key `autho
4141

4242
Example
4343

44-
``` php skip-validation
44+
``` php {skip-validation}
4545
[
4646
[
4747
'id' => 1,

docs/content_management/field_types/field_type_reference/countryfield.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This field type represents one or multiple countries.
1212

1313
Example array:
1414

15-
``` php skip-validation
15+
``` php {skip-validation}
1616
[
1717
"JP" => [
1818
"Name" => "Japan",

docs/multisite/siteaccess/siteaccess_aware_configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ For more information about the ConfigResolver, namespaces and scopes, see [confi
2727
The example below assumes you're using an `Acme\ExampleBundle`.
2828
Remember to register the bundle by adding it to `config/bundles.php`:
2929

30-
``` php skip-validation
30+
``` php {skip-validation}
3131
return [
3232
// ...
3333
Acme\ExampleBundle\AcmeExampleBundle::class => ['all' => true],

docs/permissions/permission_overview.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ You can control access to a custom controller by implementing the `performAccess
3838

3939
In the following example the user doesn't have access to the controller unless they have the `section/view` policy:
4040

41-
``` php skip-validation
41+
``` php {skip-validation}
4242
use Ibexa\Core\MVC\Symfony\Security\Authorization\Attribute;
4343

4444
public function performAccessCheck(): void
@@ -63,7 +63,7 @@ public function performAccessCheck(): void
6363
To check if a user has access to an operation, use the `isGranted()` method.
6464
For example, to check if content can be assigned to a Section:
6565

66-
``` php skip-validation
66+
``` php {skip-validation}
6767
$hasAccess = $this->isGranted(
6868
new Attribute('section', 'assign', ['valueObject' => $contentInfo, 'targets' => [$section]])
6969
);
@@ -79,6 +79,6 @@ checks the `content/edit` permission for the provided content item at the provid
7979

8080
To block access to a specific action of the controller, add the following to the action's definition:
8181

82-
``` php skip-validation
82+
``` php {skip-validation}
8383
$this->denyAccessUnlessGranted(new Attribute('state', 'administrate'));
8484
```

docs/personalization/enable_personalization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ You can retrieve data returned from the Personalization server and modify it bef
491491
To modify recommendation data, subscribe to `RecommendationResponseEvent`.
492492
See [`Event/Subscriber/RecommendationEventSubscriber.php`](https://github.com/ibexa/personalization-client/blob/main/src/lib/Event/Subscriber/RecommendationEventSubscriber.php) for an example:
493493

494-
``` php skip-validation
494+
``` php {skip-validation}
495495
public static function getSubscribedEvents(): array
496496
{
497497
return [

docs/personalization/integrate_recommendation_service.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The following examples show how you can integrate a CLICK event:
3434

3535
PHP:
3636

37-
``` php skip-validation
37+
``` php {skip-validation}
3838
$mandator_id = '00000';
3939
$content_type_id = '1';
4040
$product_id = '123';
@@ -57,7 +57,7 @@ ycimg.src=url;
5757

5858
A similar tracking image can be placed on a confirmation page that ends the payment process.
5959

60-
``` php skip-validation
60+
``` php {skip-validation}
6161
$server = '//event.perso.ibexa.co';
6262
foreach ($just_bought_products as $product_id) {
6363
$tracking = $server.'/api/'.$mandator_id.'/buy/'.urlencode(user_id()).$content_type_id.$product_id;
@@ -122,7 +122,7 @@ A response with two recommendations resembles the following object:
122122

123123
You can use the following code to make requests and parse results:
124124

125-
``` php skip-validation
125+
``` php {skip-validation}
126126
$mandator_id = '00000';
127127
$license_key = '67890-1234-5678-90123-4567';
128128
$server = "https://reco.perso.ibexa.co";

docs/release_notes/ez_platform_v2.4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ The biggest benefit of this feature is saving load time on complex landing pages
182182

183183
1\. Register `LexikJWTAuthenticationBundle` bundle in `/app/AppKernel.php`
184184

185-
``` php skip-validation
185+
``` php {skip-validation}
186186
public function registerBundles()
187187
{
188188
$bundles = array(

docs/release_notes/ez_platform_v3.0_deprecations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ All classes and interfaces from `eZ\Publish\Core\Persistence\Database` and `eZ\P
772772
The signature of the `\eZ\Publish\Core\Persistence\Legacy\URL\Query\CriterionHandler::handle` contract
773773
now accepts `\Doctrine\DBAL\Query\QueryBuilder` instead of `\eZ\Publish\Core\Persistence\Database\SelectQuery` and has the following form:
774774

775-
``` php skip-validation
775+
``` php {skip-validation}
776776
use \Doctrine\DBAL\Query\QueryBuilder;
777777
use \eZ\Publish\Core\Persistence\Legacy\URL\Query\CriteriaConverter;
778778
use \eZ\Publish\API\Repository\Values\URL\Query\Criterion;

0 commit comments

Comments
 (0)