@eui/cli 15.4.1 → 15.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.version.properties +1 -1
- package/LICENSE +296 -296
- package/README.md +26 -26
- package/bin/eui-cli.js +70 -70
- package/lib/build.js +153 -153
- package/lib/cli.js +111 -111
- package/lib/config.js +54 -54
- package/lib/generators.js +64 -64
- package/lib/install.js +54 -54
- package/lib/maven-build/build.xml +115 -115
- package/lib/maven-build/pom.xml +64 -64
- package/lib/post-build.js +33 -33
- package/lib/skeletons/_angular/base/.browserslistrc +16 -16
- package/lib/skeletons/_angular/base/.editorconfig +16 -16
- package/lib/skeletons/_angular/base/.euirc.json +8 -8
- package/lib/skeletons/_angular/base/.stylelintrc +24 -24
- package/lib/skeletons/_angular/base/README.md +26 -26
- package/lib/skeletons/_angular/base/angular.json +176 -176
- package/lib/skeletons/_angular/base/gitignore_TO_REPLACE +50 -50
- package/lib/skeletons/_angular/base/mock/app/models/user.js +8 -8
- package/lib/skeletons/_angular/base/mock/app/routes/index.js +5 -5
- package/lib/skeletons/_angular/base/mock/app/routes/user_routes.js +24 -24
- package/lib/skeletons/_angular/base/mock/db/db.json +12 -12
- package/lib/skeletons/_angular/base/mock/server.js +21 -21
- package/lib/skeletons/_angular/base/package.json +24 -24
- package/lib/skeletons/_angular/base/proxy-mock.conf.json +6 -6
- package/lib/skeletons/_angular/base/proxy.conf.json +6 -6
- package/lib/skeletons/_angular/base/src/.eslintrc.json +118 -118
- package/lib/skeletons/_angular/base/src/app/app-routing.module.ts +17 -17
- package/lib/skeletons/_angular/base/src/app/app-starter.service.ts +66 -66
- package/lib/skeletons/_angular/base/src/app/app.component.html +29 -29
- package/lib/skeletons/_angular/base/src/app/app.component.ts +51 -51
- package/lib/skeletons/_angular/base/src/app/app.module.ts +35 -35
- package/lib/skeletons/_angular/base/src/app/core/core.module.ts +87 -87
- package/lib/skeletons/_angular/base/src/app/core/reducers/index.ts +31 -31
- package/lib/skeletons/_angular/base/src/app/features/home/home-routing.module.ts +15 -15
- package/lib/skeletons/_angular/base/src/app/features/home/home.component.html +39 -39
- package/lib/skeletons/_angular/base/src/app/features/home/home.component.ts +11 -11
- package/lib/skeletons/_angular/base/src/app/features/home/home.module.ts +18 -18
- package/lib/skeletons/_angular/base/src/app/features/module1/components/page1/page1.component.html +7 -7
- package/lib/skeletons/_angular/base/src/app/features/module1/components/page1/page1.component.ts +7 -7
- package/lib/skeletons/_angular/base/src/app/features/module1/components/page2/page2.component.html +7 -7
- package/lib/skeletons/_angular/base/src/app/features/module1/components/page2/page2.component.ts +7 -7
- package/lib/skeletons/_angular/base/src/app/features/module1/module1-routing.module.ts +18 -18
- package/lib/skeletons/_angular/base/src/app/features/module1/module1.component.html +7 -7
- package/lib/skeletons/_angular/base/src/app/features/module1/module1.component.ts +8 -8
- package/lib/skeletons/_angular/base/src/app/features/module1/module1.module.ts +21 -21
- package/lib/skeletons/_angular/base/src/app/features/module2/module2-routing.module.ts +16 -16
- package/lib/skeletons/_angular/base/src/app/features/module2/module2.component.html +7 -7
- package/lib/skeletons/_angular/base/src/app/features/module2/module2.component.ts +7 -7
- package/lib/skeletons/_angular/base/src/app/features/module2/module2.module.ts +17 -17
- package/lib/skeletons/_angular/base/src/app/shared/shared.module.ts +45 -45
- package/lib/skeletons/_angular/base/src/app/shared/testing/router.mock.ts +18 -18
- package/lib/skeletons/_angular/base/src/assets/config/env-json-config-dev.json +8 -8
- package/lib/skeletons/_angular/base/src/assets/config/env-json-config-prod.json +8 -8
- package/lib/skeletons/_angular/base/src/assets/config/env-json-config.json +7 -7
- package/lib/skeletons/_angular/base/src/assets/i18n/en.json +6 -6
- package/lib/skeletons/_angular/base/src/assets/i18n/fr.json +6 -6
- package/lib/skeletons/_angular/base/src/config/global.ts +20 -20
- package/lib/skeletons/_angular/base/src/config/index.ts +8 -8
- package/lib/skeletons/_angular/base/src/config/modules.ts +7 -7
- package/lib/skeletons/_angular/base/src/dummy.spec.ts +6 -6
- package/lib/skeletons/_angular/base/src/environments/environment.prod.ts +11 -11
- package/lib/skeletons/_angular/base/src/environments/environment.ts +11 -11
- package/lib/skeletons/_angular/base/src/index.html +21 -21
- package/lib/skeletons/_angular/base/src/karma.conf.js +7 -7
- package/lib/skeletons/_angular/base/src/main.ts +14 -14
- package/lib/skeletons/_angular/base/src/polyfills.ts +89 -89
- package/lib/skeletons/_angular/base/src/styles.scss +1 -1
- package/lib/skeletons/_angular/base/src/tsconfig.app.json +18 -18
- package/lib/skeletons/_angular/base/src/tsconfig.spec.json +14 -14
- package/lib/skeletons/_angular/base/tsconfig.json +27 -27
- package/lib/skeletons/_angular/base-mobile/angular.json +160 -160
- package/lib/skeletons/_angular/base-mobile/ionic.config.json +5 -5
- package/lib/skeletons/_angular/base-mobile/ngsw-config.json +33 -33
- package/lib/skeletons/_angular/base-mobile/package.json +28 -28
- package/lib/skeletons/_angular/base-mobile/src/app/app-routing.module.ts +17 -17
- package/lib/skeletons/_angular/base-mobile/src/app/app-starter.service.ts +73 -73
- package/lib/skeletons/_angular/base-mobile/src/app/app.component.html +27 -27
- package/lib/skeletons/_angular/base-mobile/src/app/app.component.ts +55 -55
- package/lib/skeletons/_angular/base-mobile/src/app/app.module.ts +44 -44
- package/lib/skeletons/_angular/base-mobile/src/app/core/core.module.ts +89 -89
- package/lib/skeletons/_angular/base-mobile/src/app/core/reducers/index.ts +31 -31
- package/lib/skeletons/_angular/base-mobile/src/app/features/home/home-routing.module.ts +15 -15
- package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.component.html +14 -14
- package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.component.ts +11 -11
- package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.module.ts +18 -18
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page1/page1.component.html +11 -11
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page1/page1.component.ts +7 -7
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page2/page2.component.html +11 -11
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page2/page2.component.ts +7 -7
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1-routing.module.ts +18 -18
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.component.html +15 -15
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.component.ts +17 -17
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.module.ts +21 -21
- package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2-routing.module.ts +16 -16
- package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.component.html +11 -11
- package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.component.ts +7 -7
- package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.module.ts +17 -17
- package/lib/skeletons/_angular/base-mobile/src/app/shared/shared.module.ts +16 -16
- package/lib/skeletons/_angular/base-mobile/src/app/shared/testing/router.mock.ts +18 -18
- package/lib/skeletons/_angular/base-mobile/src/index.html +27 -27
- package/lib/skeletons/_angular/base-mobile/src/manifest.webmanifest +51 -51
- package/lib/skeletons/_angular/base-mobile/src/tsconfig.app.json +19 -19
- package/lib/skeletons/_angular/options/ecl/angular.json +193 -193
- package/lib/skeletons/_angular/options/ecl/src/app/app.component.html +262 -262
- package/lib/skeletons/_angular/options/ecl/src/app/app.component.ts +59 -59
- package/lib/skeletons/_angular/options/ecl/src/app/features/home/home.component.html +70 -70
- package/lib/skeletons/_angular/options/ecl/src/app/features/module1/components/page1/page1.component.html +1 -1
- package/lib/skeletons/_angular/options/ecl/src/app/features/module1/components/page2/page2.component.html +1 -1
- package/lib/skeletons/_angular/options/ecl/src/app/features/module1/module1.component.html +1 -1
- package/lib/skeletons/_angular/options/ecl/src/app/features/module2/module2.component.html +1 -1
- package/lib/skeletons/_angular/options/ecl/src/app/shared/shared.module.ts +19 -19
- package/lib/skeletons/_angular/options/ecl/src/config/global.ts +20 -20
- package/lib/skeletons/_angular/options/openid-jwt/package.json +22 -22
- package/lib/skeletons/_angular/options/openid-jwt/src/app/core/core.module.ts +94 -94
- package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config-dev.json +24 -24
- package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config-local-mock.json +10 -10
- package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config-local.json +23 -23
- package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config-prod.json +23 -23
- package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config.json +10 -10
- package/lib/skeletons/_angular/options/openid-jwt/src/environments/environment.prod.ts +11 -11
- package/lib/skeletons/_angular/options/openid-jwt/src/environments/environment.ts +11 -11
- package/lib/skeletons/_angular/options/openid-jwt/src/index.html +21 -21
- package/lib/skeletons/web-maven/package.json +17 -17
- package/lib/skeletons/web-maven/pom.xml +55 -55
- package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/servlet/SpringWebApplicationInitializer.java +22 -22
- package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/spring/SpringRestConfiguration.java +24 -24
- package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/spring/rest/UserDetailsResource.java +23 -23
- package/lib/skeletons/web-maven/src/main/resources/ecas-config-application-name.xml +7 -7
- package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/dispatcher-servlet.xml +10 -10
- package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/web.xml +38 -38
- package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/weblogic.xml +15 -15
- package/lib/skeletons/web-maven/src/main/webapp/index.jsp +29 -29
- package/lib/skeletons/web-spring-boot/myapp-web/pom.xml +77 -77
- package/lib/skeletons/web-spring-boot/myapp-web-rest/pom.xml +84 -84
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/MyappApplication.java +46 -46
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/domain/Address.java +65 -65
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/domain/Building.java +44 -44
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/repositories/BuildingRepository.java +10 -10
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/BuildingResource.java +26 -26
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/SwaggerConfig.java +20 -20
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/HateoasPageableHandlerMethodArgumentResolver.java +45 -45
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/HypermediaSupport.java +25 -25
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/PageJsonSerializer.java +17 -17
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/CachingPreventionFilter.java +29 -29
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/CsrfPreventionFilter.java +35 -35
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/FakeAuthenticationFilter.java +372 -372
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/SecurityConfig.java +47 -47
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingSearchCriteria.java +25 -25
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingService.java +9 -9
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingServiceImpl.java +25 -25
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/resources/data.sql +10 -10
- package/lib/skeletons/web-spring-boot/pom.xml +30 -30
- package/lib/skeletons/web-symfony/myapp-web/angular.json +170 -170
- package/lib/skeletons/web-symfony/myapp-web/package.json +23 -23
- package/lib/skeletons/web-symfony/myapp-web/src/app/app-routing.module.ts +18 -18
- package/lib/skeletons/web-symfony/myapp-web/src/app/app.component.ts +77 -77
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/components/products.component.html +160 -160
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/components/products.component.ts +104 -104
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/models/product.model.ts +6 -6
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/products-routing.module.ts +16 -16
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/products.module.ts +16 -16
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/services/products.service.ts +29 -29
- package/lib/skeletons/web-symfony/myapp-web/src/environments/environment.ts +17 -17
- package/lib/skeletons/web-symfony/myapp-web-rest/.env +28 -28
- package/lib/skeletons/web-symfony/myapp-web-rest/bin/console +42 -42
- package/lib/skeletons/web-symfony/myapp-web-rest/composer.json +67 -67
- package/lib/skeletons/web-symfony/myapp-web-rest/composer.lock +3572 -3572
- package/lib/skeletons/web-symfony/myapp-web-rest/config/bootstrap.php +21 -21
- package/lib/skeletons/web-symfony/myapp-web-rest/config/bundles.php +12 -12
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/cache.yaml +19 -19
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/dev/routing.yaml +3 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/doctrine.yaml +29 -29
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/doctrine_migrations.yaml +5 -5
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/framework.yaml +17 -17
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/prod/doctrine.yaml +32 -32
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/routing.yaml +4 -4
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/sensio_framework_extra.yaml +3 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/test/framework.yaml +4 -4
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/test/routing.yaml +3 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/twig.yaml +4 -4
- package/lib/skeletons/web-symfony/myapp-web-rest/config/routes/annotations.yaml +3 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/routes/dev/twig.yaml +3 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/routes.yaml +3 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/services.yaml +27 -27
- package/lib/skeletons/web-symfony/myapp-web-rest/public/index.php +27 -27
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Controller/ProductController.php +196 -196
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Entity/Product.php +99 -99
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Kernel.php +53 -53
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Migrations/Version20190604101623.php +31 -31
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Migrations/Version20190604101638.php +35 -35
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Repository/ProductRepository.php +51 -51
- package/lib/skeletons/web-symfony/myapp-web-rest/symfony.lock +274 -274
- package/lib/skeletons/web-symfony/myapp-web-rest/templates/base.html.twig +12 -12
- package/lib/skeletons/web-symfony/myapp-web-rest/templates/product/index.html.twig +20 -20
- package/lib/utils.js +17 -17
- package/package.json +3 -3
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
<?php
|
|
2
|
-
|
|
3
|
-
use Symfony\Component\Dotenv\Dotenv;
|
|
4
|
-
|
|
5
|
-
require dirname(__DIR__).'/vendor/autoload.php';
|
|
6
|
-
|
|
7
|
-
// Load cached env vars if the .env.local.php file exists
|
|
8
|
-
// Run "composer dump-env prod" to create it (requires symfony/flex >=1.2)
|
|
9
|
-
if (is_array($env = @include dirname(__DIR__).'/.env.local.php')) {
|
|
10
|
-
$_ENV += $env;
|
|
11
|
-
} elseif (!class_exists(Dotenv::class)) {
|
|
12
|
-
throw new RuntimeException('Please run "composer require symfony/dotenv" to load the ".env" files configuring the application.');
|
|
13
|
-
} else {
|
|
14
|
-
// load all the .env files
|
|
15
|
-
(new Dotenv(false))->loadEnv(dirname(__DIR__).'/.env');
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
$_SERVER += $_ENV;
|
|
19
|
-
$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? null) ?: 'dev';
|
|
20
|
-
$_SERVER['APP_DEBUG'] = $_SERVER['APP_DEBUG'] ?? $_ENV['APP_DEBUG'] ?? 'prod' !== $_SERVER['APP_ENV'];
|
|
21
|
-
$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = (int) $_SERVER['APP_DEBUG'] || filter_var($_SERVER['APP_DEBUG'], FILTER_VALIDATE_BOOLEAN) ? '1' : '0';
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
use Symfony\Component\Dotenv\Dotenv;
|
|
4
|
+
|
|
5
|
+
require dirname(__DIR__).'/vendor/autoload.php';
|
|
6
|
+
|
|
7
|
+
// Load cached env vars if the .env.local.php file exists
|
|
8
|
+
// Run "composer dump-env prod" to create it (requires symfony/flex >=1.2)
|
|
9
|
+
if (is_array($env = @include dirname(__DIR__).'/.env.local.php')) {
|
|
10
|
+
$_ENV += $env;
|
|
11
|
+
} elseif (!class_exists(Dotenv::class)) {
|
|
12
|
+
throw new RuntimeException('Please run "composer require symfony/dotenv" to load the ".env" files configuring the application.');
|
|
13
|
+
} else {
|
|
14
|
+
// load all the .env files
|
|
15
|
+
(new Dotenv(false))->loadEnv(dirname(__DIR__).'/.env');
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
$_SERVER += $_ENV;
|
|
19
|
+
$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? null) ?: 'dev';
|
|
20
|
+
$_SERVER['APP_DEBUG'] = $_SERVER['APP_DEBUG'] ?? $_ENV['APP_DEBUG'] ?? 'prod' !== $_SERVER['APP_ENV'];
|
|
21
|
+
$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = (int) $_SERVER['APP_DEBUG'] || filter_var($_SERVER['APP_DEBUG'], FILTER_VALIDATE_BOOLEAN) ? '1' : '0';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
<?php
|
|
2
|
-
|
|
3
|
-
return [
|
|
4
|
-
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
|
|
5
|
-
Symfony\Bundle\WebServerBundle\WebServerBundle::class => ['dev' => true],
|
|
6
|
-
Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true],
|
|
7
|
-
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
|
|
8
|
-
Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle::class => ['all' => true],
|
|
9
|
-
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
|
|
10
|
-
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
|
|
11
|
-
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
|
|
12
|
-
];
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
return [
|
|
4
|
+
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
|
|
5
|
+
Symfony\Bundle\WebServerBundle\WebServerBundle::class => ['dev' => true],
|
|
6
|
+
Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true],
|
|
7
|
+
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
|
|
8
|
+
Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle::class => ['all' => true],
|
|
9
|
+
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
|
|
10
|
+
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
|
|
11
|
+
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
|
|
12
|
+
];
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
framework:
|
|
2
|
-
cache:
|
|
3
|
-
# Put the unique name of your app here: the prefix seed
|
|
4
|
-
# is used to compute stable namespaces for cache keys.
|
|
5
|
-
#prefix_seed: your_vendor_name/app_name
|
|
6
|
-
|
|
7
|
-
# The app cache caches to the filesystem by default.
|
|
8
|
-
# Other options include:
|
|
9
|
-
|
|
10
|
-
# Redis
|
|
11
|
-
#app: cache.adapter.redis
|
|
12
|
-
#default_redis_provider: redis://localhost
|
|
13
|
-
|
|
14
|
-
# APCu (not recommended with heavy random-write workloads as memory fragmentation can cause perf issues)
|
|
15
|
-
#app: cache.adapter.apcu
|
|
16
|
-
|
|
17
|
-
# Namespaced pools use the above "app" backend by default
|
|
18
|
-
#pools:
|
|
19
|
-
#my.dedicated.cache: ~
|
|
1
|
+
framework:
|
|
2
|
+
cache:
|
|
3
|
+
# Put the unique name of your app here: the prefix seed
|
|
4
|
+
# is used to compute stable namespaces for cache keys.
|
|
5
|
+
#prefix_seed: your_vendor_name/app_name
|
|
6
|
+
|
|
7
|
+
# The app cache caches to the filesystem by default.
|
|
8
|
+
# Other options include:
|
|
9
|
+
|
|
10
|
+
# Redis
|
|
11
|
+
#app: cache.adapter.redis
|
|
12
|
+
#default_redis_provider: redis://localhost
|
|
13
|
+
|
|
14
|
+
# APCu (not recommended with heavy random-write workloads as memory fragmentation can cause perf issues)
|
|
15
|
+
#app: cache.adapter.apcu
|
|
16
|
+
|
|
17
|
+
# Namespaced pools use the above "app" backend by default
|
|
18
|
+
#pools:
|
|
19
|
+
#my.dedicated.cache: ~
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
framework:
|
|
2
|
-
router:
|
|
3
|
-
strict_requirements: true
|
|
1
|
+
framework:
|
|
2
|
+
router:
|
|
3
|
+
strict_requirements: true
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
parameters:
|
|
2
|
-
# Adds a fallback DATABASE_URL if the env var is not set.
|
|
3
|
-
# This allows you to run cache:warmup even if your
|
|
4
|
-
# environment variables are not available yet.
|
|
5
|
-
# You should not need to change this value.
|
|
6
|
-
env(DATABASE_URL): ''
|
|
7
|
-
|
|
8
|
-
doctrine:
|
|
9
|
-
dbal:
|
|
10
|
-
# configure these for your database server
|
|
11
|
-
driver: 'pdo_mysql'
|
|
12
|
-
server_version: '5.7'
|
|
13
|
-
charset: utf8mb4
|
|
14
|
-
default_table_options:
|
|
15
|
-
charset: utf8mb4
|
|
16
|
-
collate: utf8mb4_unicode_ci
|
|
17
|
-
|
|
18
|
-
url: '%env(resolve:DATABASE_URL)%'
|
|
19
|
-
orm:
|
|
20
|
-
auto_generate_proxy_classes: true
|
|
21
|
-
naming_strategy: doctrine.orm.naming_strategy.underscore
|
|
22
|
-
auto_mapping: true
|
|
23
|
-
mappings:
|
|
24
|
-
App:
|
|
25
|
-
is_bundle: false
|
|
26
|
-
type: annotation
|
|
27
|
-
dir: '%kernel.project_dir%/src/Entity'
|
|
28
|
-
prefix: 'App\Entity'
|
|
29
|
-
alias: App
|
|
1
|
+
parameters:
|
|
2
|
+
# Adds a fallback DATABASE_URL if the env var is not set.
|
|
3
|
+
# This allows you to run cache:warmup even if your
|
|
4
|
+
# environment variables are not available yet.
|
|
5
|
+
# You should not need to change this value.
|
|
6
|
+
env(DATABASE_URL): ''
|
|
7
|
+
|
|
8
|
+
doctrine:
|
|
9
|
+
dbal:
|
|
10
|
+
# configure these for your database server
|
|
11
|
+
driver: 'pdo_mysql'
|
|
12
|
+
server_version: '5.7'
|
|
13
|
+
charset: utf8mb4
|
|
14
|
+
default_table_options:
|
|
15
|
+
charset: utf8mb4
|
|
16
|
+
collate: utf8mb4_unicode_ci
|
|
17
|
+
|
|
18
|
+
url: '%env(resolve:DATABASE_URL)%'
|
|
19
|
+
orm:
|
|
20
|
+
auto_generate_proxy_classes: true
|
|
21
|
+
naming_strategy: doctrine.orm.naming_strategy.underscore
|
|
22
|
+
auto_mapping: true
|
|
23
|
+
mappings:
|
|
24
|
+
App:
|
|
25
|
+
is_bundle: false
|
|
26
|
+
type: annotation
|
|
27
|
+
dir: '%kernel.project_dir%/src/Entity'
|
|
28
|
+
prefix: 'App\Entity'
|
|
29
|
+
alias: App
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
doctrine_migrations:
|
|
2
|
-
dir_name: '%kernel.project_dir%/src/Migrations'
|
|
3
|
-
# namespace is arbitrary but should be different from App\Migrations
|
|
4
|
-
# as migrations classes should NOT be autoloaded
|
|
5
|
-
namespace: DoctrineMigrations
|
|
1
|
+
doctrine_migrations:
|
|
2
|
+
dir_name: '%kernel.project_dir%/src/Migrations'
|
|
3
|
+
# namespace is arbitrary but should be different from App\Migrations
|
|
4
|
+
# as migrations classes should NOT be autoloaded
|
|
5
|
+
namespace: DoctrineMigrations
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
framework:
|
|
2
|
-
secret: '%env(APP_SECRET)%'
|
|
3
|
-
#default_locale: en
|
|
4
|
-
#csrf_protection: true
|
|
5
|
-
#http_method_override: true
|
|
6
|
-
|
|
7
|
-
# Enables session support. Note that the session will ONLY be started if you read or write from it.
|
|
8
|
-
# Remove or comment this section to explicitly disable session support.
|
|
9
|
-
session:
|
|
10
|
-
handler_id: ~
|
|
11
|
-
cookie_secure: auto
|
|
12
|
-
cookie_samesite: lax
|
|
13
|
-
|
|
14
|
-
#esi: true
|
|
15
|
-
#fragments: true
|
|
16
|
-
php_errors:
|
|
17
|
-
log: true
|
|
1
|
+
framework:
|
|
2
|
+
secret: '%env(APP_SECRET)%'
|
|
3
|
+
#default_locale: en
|
|
4
|
+
#csrf_protection: true
|
|
5
|
+
#http_method_override: true
|
|
6
|
+
|
|
7
|
+
# Enables session support. Note that the session will ONLY be started if you read or write from it.
|
|
8
|
+
# Remove or comment this section to explicitly disable session support.
|
|
9
|
+
session:
|
|
10
|
+
handler_id: ~
|
|
11
|
+
cookie_secure: auto
|
|
12
|
+
cookie_samesite: lax
|
|
13
|
+
|
|
14
|
+
#esi: true
|
|
15
|
+
#fragments: true
|
|
16
|
+
php_errors:
|
|
17
|
+
log: true
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
doctrine:
|
|
2
|
-
orm:
|
|
3
|
-
auto_generate_proxy_classes: false
|
|
4
|
-
metadata_cache_driver:
|
|
5
|
-
type: service
|
|
6
|
-
id: doctrine.system_cache_provider
|
|
7
|
-
query_cache_driver:
|
|
8
|
-
type: service
|
|
9
|
-
id: doctrine.system_cache_provider
|
|
10
|
-
result_cache_driver:
|
|
11
|
-
type: service
|
|
12
|
-
id: doctrine.result_cache_provider
|
|
13
|
-
|
|
14
|
-
services:
|
|
15
|
-
doctrine.result_cache_provider:
|
|
16
|
-
class: Symfony\Component\Cache\DoctrineProvider
|
|
17
|
-
public: false
|
|
18
|
-
arguments:
|
|
19
|
-
- '@doctrine.result_cache_pool'
|
|
20
|
-
doctrine.system_cache_provider:
|
|
21
|
-
class: Symfony\Component\Cache\DoctrineProvider
|
|
22
|
-
public: false
|
|
23
|
-
arguments:
|
|
24
|
-
- '@doctrine.system_cache_pool'
|
|
25
|
-
|
|
26
|
-
framework:
|
|
27
|
-
cache:
|
|
28
|
-
pools:
|
|
29
|
-
doctrine.result_cache_pool:
|
|
30
|
-
adapter: cache.app
|
|
31
|
-
doctrine.system_cache_pool:
|
|
32
|
-
adapter: cache.system
|
|
1
|
+
doctrine:
|
|
2
|
+
orm:
|
|
3
|
+
auto_generate_proxy_classes: false
|
|
4
|
+
metadata_cache_driver:
|
|
5
|
+
type: service
|
|
6
|
+
id: doctrine.system_cache_provider
|
|
7
|
+
query_cache_driver:
|
|
8
|
+
type: service
|
|
9
|
+
id: doctrine.system_cache_provider
|
|
10
|
+
result_cache_driver:
|
|
11
|
+
type: service
|
|
12
|
+
id: doctrine.result_cache_provider
|
|
13
|
+
|
|
14
|
+
services:
|
|
15
|
+
doctrine.result_cache_provider:
|
|
16
|
+
class: Symfony\Component\Cache\DoctrineProvider
|
|
17
|
+
public: false
|
|
18
|
+
arguments:
|
|
19
|
+
- '@doctrine.result_cache_pool'
|
|
20
|
+
doctrine.system_cache_provider:
|
|
21
|
+
class: Symfony\Component\Cache\DoctrineProvider
|
|
22
|
+
public: false
|
|
23
|
+
arguments:
|
|
24
|
+
- '@doctrine.system_cache_pool'
|
|
25
|
+
|
|
26
|
+
framework:
|
|
27
|
+
cache:
|
|
28
|
+
pools:
|
|
29
|
+
doctrine.result_cache_pool:
|
|
30
|
+
adapter: cache.app
|
|
31
|
+
doctrine.system_cache_pool:
|
|
32
|
+
adapter: cache.system
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
framework:
|
|
2
|
-
router:
|
|
3
|
-
strict_requirements: ~
|
|
4
|
-
utf8: true
|
|
1
|
+
framework:
|
|
2
|
+
router:
|
|
3
|
+
strict_requirements: ~
|
|
4
|
+
utf8: true
|
package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/sensio_framework_extra.yaml
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
sensio_framework_extra:
|
|
2
|
-
router:
|
|
3
|
-
annotations: false
|
|
1
|
+
sensio_framework_extra:
|
|
2
|
+
router:
|
|
3
|
+
annotations: false
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
framework:
|
|
2
|
-
test: true
|
|
3
|
-
session:
|
|
4
|
-
storage_id: session.storage.mock_file
|
|
1
|
+
framework:
|
|
2
|
+
test: true
|
|
3
|
+
session:
|
|
4
|
+
storage_id: session.storage.mock_file
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
framework:
|
|
2
|
-
router:
|
|
3
|
-
strict_requirements: true
|
|
1
|
+
framework:
|
|
2
|
+
router:
|
|
3
|
+
strict_requirements: true
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
twig:
|
|
2
|
-
default_path: '%kernel.project_dir%/templates'
|
|
3
|
-
debug: '%kernel.debug%'
|
|
4
|
-
strict_variables: '%kernel.debug%'
|
|
1
|
+
twig:
|
|
2
|
+
default_path: '%kernel.project_dir%/templates'
|
|
3
|
+
debug: '%kernel.debug%'
|
|
4
|
+
strict_variables: '%kernel.debug%'
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
controllers:
|
|
2
|
-
resource: ../../src/Controller/
|
|
3
|
-
type: annotation
|
|
1
|
+
controllers:
|
|
2
|
+
resource: ../../src/Controller/
|
|
3
|
+
type: annotation
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
_errors:
|
|
2
|
-
resource: '@TwigBundle/Resources/config/routing/errors.xml'
|
|
3
|
-
prefix: /_error
|
|
1
|
+
_errors:
|
|
2
|
+
resource: '@TwigBundle/Resources/config/routing/errors.xml'
|
|
3
|
+
prefix: /_error
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
#index:
|
|
2
|
-
# path: /
|
|
3
|
-
# controller: App\Controller\DefaultController::index
|
|
1
|
+
#index:
|
|
2
|
+
# path: /
|
|
3
|
+
# controller: App\Controller\DefaultController::index
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
# This file is the entry point to configure your own services.
|
|
2
|
-
# Files in the packages/ subdirectory configure your dependencies.
|
|
3
|
-
|
|
4
|
-
# Put parameters here that don't need to change on each machine where the app is deployed
|
|
5
|
-
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
|
|
6
|
-
parameters:
|
|
7
|
-
|
|
8
|
-
services:
|
|
9
|
-
# default configuration for services in *this* file
|
|
10
|
-
_defaults:
|
|
11
|
-
autowire: true # Automatically injects dependencies in your services.
|
|
12
|
-
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
|
|
13
|
-
|
|
14
|
-
# makes classes in src/ available to be used as services
|
|
15
|
-
# this creates a service per class whose id is the fully-qualified class name
|
|
16
|
-
App\:
|
|
17
|
-
resource: '../src/*'
|
|
18
|
-
exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
|
|
19
|
-
|
|
20
|
-
# controllers are imported separately to make sure services can be injected
|
|
21
|
-
# as action arguments even if you don't extend any base controller class
|
|
22
|
-
App\Controller\:
|
|
23
|
-
resource: '../src/Controller'
|
|
24
|
-
tags: ['controller.service_arguments']
|
|
25
|
-
|
|
26
|
-
# add more service definitions when explicit configuration is needed
|
|
27
|
-
# please note that last definitions always *replace* previous ones
|
|
1
|
+
# This file is the entry point to configure your own services.
|
|
2
|
+
# Files in the packages/ subdirectory configure your dependencies.
|
|
3
|
+
|
|
4
|
+
# Put parameters here that don't need to change on each machine where the app is deployed
|
|
5
|
+
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
|
|
6
|
+
parameters:
|
|
7
|
+
|
|
8
|
+
services:
|
|
9
|
+
# default configuration for services in *this* file
|
|
10
|
+
_defaults:
|
|
11
|
+
autowire: true # Automatically injects dependencies in your services.
|
|
12
|
+
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
|
|
13
|
+
|
|
14
|
+
# makes classes in src/ available to be used as services
|
|
15
|
+
# this creates a service per class whose id is the fully-qualified class name
|
|
16
|
+
App\:
|
|
17
|
+
resource: '../src/*'
|
|
18
|
+
exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
|
|
19
|
+
|
|
20
|
+
# controllers are imported separately to make sure services can be injected
|
|
21
|
+
# as action arguments even if you don't extend any base controller class
|
|
22
|
+
App\Controller\:
|
|
23
|
+
resource: '../src/Controller'
|
|
24
|
+
tags: ['controller.service_arguments']
|
|
25
|
+
|
|
26
|
+
# add more service definitions when explicit configuration is needed
|
|
27
|
+
# please note that last definitions always *replace* previous ones
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
<?php
|
|
2
|
-
|
|
3
|
-
use App\Kernel;
|
|
4
|
-
use Symfony\Component\Debug\Debug;
|
|
5
|
-
use Symfony\Component\HttpFoundation\Request;
|
|
6
|
-
|
|
7
|
-
require dirname(__DIR__).'/config/bootstrap.php';
|
|
8
|
-
|
|
9
|
-
if ($_SERVER['APP_DEBUG']) {
|
|
10
|
-
umask(0000);
|
|
11
|
-
|
|
12
|
-
Debug::enable();
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? $_ENV['TRUSTED_PROXIES'] ?? false) {
|
|
16
|
-
Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_ALL ^ Request::HEADER_X_FORWARDED_HOST);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? $_ENV['TRUSTED_HOSTS'] ?? false) {
|
|
20
|
-
Request::setTrustedHosts([$trustedHosts]);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
|
|
24
|
-
$request = Request::createFromGlobals();
|
|
25
|
-
$response = $kernel->handle($request);
|
|
26
|
-
$response->send();
|
|
27
|
-
$kernel->terminate($request, $response);
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
use App\Kernel;
|
|
4
|
+
use Symfony\Component\Debug\Debug;
|
|
5
|
+
use Symfony\Component\HttpFoundation\Request;
|
|
6
|
+
|
|
7
|
+
require dirname(__DIR__).'/config/bootstrap.php';
|
|
8
|
+
|
|
9
|
+
if ($_SERVER['APP_DEBUG']) {
|
|
10
|
+
umask(0000);
|
|
11
|
+
|
|
12
|
+
Debug::enable();
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? $_ENV['TRUSTED_PROXIES'] ?? false) {
|
|
16
|
+
Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_ALL ^ Request::HEADER_X_FORWARDED_HOST);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? $_ENV['TRUSTED_HOSTS'] ?? false) {
|
|
20
|
+
Request::setTrustedHosts([$trustedHosts]);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
|
|
24
|
+
$request = Request::createFromGlobals();
|
|
25
|
+
$response = $kernel->handle($request);
|
|
26
|
+
$response->send();
|
|
27
|
+
$kernel->terminate($request, $response);
|