Skip to content

Commit c8ff7e8

Browse files
Update recipes 2023-07-19 (#45)
1 parent 0b596c2 commit c8ff7e8

File tree

15 files changed

+86
-0
lines changed

15 files changed

+86
-0
lines changed

phpstan/phpstan/1.0/manifest.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"copy-from-recipe": {
3+
"phpstan.neon": "phpstan.neon"
4+
}
5+
}

phpstan/phpstan/1.0/phpstan.neon

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
parameters:
2+
level: 6
3+
paths:
4+
- bin/
5+
- config/
6+
- public/
7+
- src/
8+
- tests/

phpstan/phpstan/1.0/post-install.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
* Edit the <comment>phpstan.neon</comment> file to configure PHPStan.
2+
3+
* For the full options, see
4+
<comment>https://phpstan.org/user-guide/getting-started</comment>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
6+
7+
return static function (ContainerConfigurator $containerConfigurator): void {
8+
$containerConfigurator->extension('setono_google_analytics', [
9+
'gtag' => [
10+
'properties' => [[
11+
'measurement_id' => '%env(GOOGLE_ANALYTICS_MEASUREMENT_ID)%',
12+
]],
13+
],
14+
]);
15+
};
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"bundles": {
3+
"Setono\\GoogleAnalyticsBundle\\SetonoGoogleAnalyticsBundle": ["all"]
4+
},
5+
"copy-from-recipe": {
6+
"config/": "%CONFIG_DIR%/"
7+
},
8+
"env": {
9+
"GOOGLE_ANALYTICS_MEASUREMENT_ID": "YOUR_GOOGLE_ANALYTICS_MEASUREMENT_ID"
10+
}
11+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
6+
7+
return static function (ContainerConfigurator $containerConfigurator): void {
8+
$containerConfigurator->extension('wedrix_watchtower', [
9+
'endpoint' => '/graphql.json',
10+
'schema_file' => '%kernel.project_dir%/config/watchtower/schema.graphql',
11+
'plugins_directory' => '%kernel.project_dir%/config/watchtower/plugins',
12+
'scalar_type_definitions_directory' => '%kernel.project_dir%/config/watchtower/scalar_type_definitions',
13+
'schema_cache_directory' => '%kernel.project_dir%/var/cache/watchtower/schema',
14+
'cache_schema' => false,
15+
'debug' => true,
16+
'context' => [
17+
'entity_manager' => 'doctrine.orm.entity_manager',
18+
],
19+
]);
20+
if ($containerConfigurator->env() === 'prod') {
21+
$containerConfigurator->extension('wedrix_watchtower', [
22+
'cache_schema' => true,
23+
'debug' => false,
24+
]);
25+
}
26+
};
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
6+
7+
return static function (RoutingConfigurator $routingConfigurator): void {
8+
$routingConfigurator->import('@WedrixWatchtowerBundle/config/routes.yaml');
9+
};

wedrix/watchtower-bundle/1.0/config/watchtower/plugins/authorizors/.gitignore

Whitespace-only changes.

wedrix/watchtower-bundle/1.0/config/watchtower/plugins/filters/.gitignore

Whitespace-only changes.

wedrix/watchtower-bundle/1.0/config/watchtower/plugins/mutations/.gitignore

Whitespace-only changes.

0 commit comments

Comments
 (0)