Skip to content

Commit 2580c22

Browse files
author
orocrmdeployer
committed
Merge remote-tracking branch 'remotes/dev/master'
2 parents 2e756be + 1379d32 commit 2580c22

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+591
-940
lines changed

.gitignore

+18-21
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,29 @@ behat.yml
99
/var/
1010
!var/cache/.gitkeep
1111
!var/logs/.gitkeep
12+
!var/attachment/.gitkeep
13+
!var/import_export/.gitkeep
1214
/build/logs/*
1315
/vendor
1416
node_modules/
1517
/cov
16-
/web/bundles
17-
/web/css
18-
/web/images
19-
/web/js
20-
/web/uploads/users/*
21-
/web/media/cache
22-
/web/media/js
23-
/web/build.js
24-
/web/tracking.php
25-
/app/phpunit.xml
26-
/app/karma.conf.js
27-
/app/config/parameters.yml
28-
/app/config/parameters_test.yml
29-
/app/cache/*
30-
/app/logs/*
31-
!app/cache/.gitkeep
32-
!app/logs/.gitkeep
18+
/public/bundles
19+
/public/css
20+
/public/images
21+
/public/js
22+
/public/uploads/users/*
23+
/public/media/cache
24+
/public/media/js
25+
/public/build.js
26+
/public/tracking.php
27+
/config/parameters.yml
28+
/config/parameters_test.yml
3329
phpunit.xml
3430
*~
3531
bin/*
3632
!bin/console
37-
38-
/app/SymfonyRequirements.php
39-
/web/sitemaps
40-
/web/uploads/behat
33+
!bin/dist
34+
/var/SymfonyRequirements.php
35+
/public/sitemaps
36+
/public/uploads/behat
37+
/.web-server-pid

app/.gitignore

-4
This file was deleted.

app/.htaccess

-1
This file was deleted.

app/Resources/translations/install.en.yml

-31
This file was deleted.

app/autoload.php

-16
This file was deleted.

bin/console

+16-7
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,29 @@
11
#!/usr/bin/env php
22
<?php
33

4+
use Symfony\Bundle\FrameworkBundle\Console\Application;
5+
use Symfony\Component\Console\Input\ArgvInput;
6+
use Symfony\Component\Debug\Debug;
7+
48
// if you don't want to setup permissions the proper way, just uncomment the following PHP line
5-
// read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information
9+
// read https://symfony.com/doc/current/setup.html#checking-symfony-application-configuration-and-setup
10+
// for more information
611
//umask(0000);
712

813
set_time_limit(0);
914

10-
require __DIR__.'/../app/autoload.php';
11-
12-
use Symfony\Bundle\FrameworkBundle\Console\Application;
13-
use Symfony\Component\Console\Input\ArgvInput;
15+
require __DIR__.'/../vendor/autoload.php';
1416

1517
$input = new ArgvInput();
16-
$env = $input->getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev');
17-
$debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(array('--no-debug', '')) && $env !== 'prod';
18+
$env = $input->getParameterOption(['--env', '-e'], getenv('SYMFONY_ENV') ?: 'dev', true);
19+
if ($env === 'dev' && !isset($_ENV['APP_FRONT_CONTROLLER'])) {
20+
$_ENV['APP_FRONT_CONTROLLER'] = 'index_dev.php';
21+
}
22+
$debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption('--no-debug', true) && $env !== 'prod';
23+
24+
if ($debug) {
25+
Debug::enable();
26+
}
1827

1928
$kernel = new AppKernel($env, $debug);
2029
$application = new Application($kernel);

app/dist bin/dist

+5-3
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,17 @@
77

88
set_time_limit(0);
99

10-
//require_once __DIR__.'/bootstrap.php.cache';
11-
require_once __DIR__.'/autoload.php';
12-
require_once __DIR__.'/DistributionKernel.php';
10+
require_once __DIR__.'/../vendor/autoload.php';
11+
require_once __DIR__.'/../src/DistributionKernel.php';
1312

1413
use Symfony\Bundle\FrameworkBundle\Console\Application;
1514
use Symfony\Component\Console\Input\ArgvInput;
1615

1716
$input = new ArgvInput();
1817
$env = $input->getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev');
18+
if ($env === 'dev' && !isset($_ENV['APP_FRONT_CONTROLLER'])) {
19+
$_ENV['APP_FRONT_CONTROLLER'] = 'index_dev.php';
20+
}
1921
$debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(array('--no-debug', '')) && $env !== 'prod';
2022

2123
$kernel = new DistributionKernel($env, $debug);

composer.json

+4-6
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
],
1111
"autoload": {
1212
"psr-4": {"": "src/"},
13-
"files": ["app/AppKernel.php"],
13+
"files": ["src/AppKernel.php"],
1414
"exclude-from-classmap": ["**/Tests/"]
1515
},
1616
"repositories": {
@@ -43,7 +43,6 @@
4343
"behat/symfony2-extension": "2.1.1",
4444
"nelmio/alice": "2.2.*",
4545
"phpunit/phpunit": "5.7.*",
46-
"phpunit/phpunit-selenium": "3.0.*",
4746
"johnkary/phpunit-speedtrap": "1.0.*",
4847
"mybuilder/phpunit-accelerator": "1.2.*",
4948
"squizlabs/php_codesniffer": "2.8.*",
@@ -57,7 +56,7 @@
5756
"platform": {
5857
"php": "7.1"
5958
},
60-
"component-dir": "web/bundles/components",
59+
"component-dir": "public/bundles/components",
6160
"bin-dir": "bin",
6261
"fxp-asset": {
6362
"enabled": false
@@ -84,13 +83,12 @@
8483
"minimum-stability": "dev",
8584
"prefer-stable": true,
8685
"extra": {
87-
"symfony-app-dir": "app",
88-
"symfony-web-dir": "web",
86+
"symfony-web-dir": "public",
8987
"symfony-var-dir": "var",
9088
"symfony-bin-dir": "bin",
9189
"symfony-tests-dir": "tests",
9290
"incenteev-parameters": {
93-
"file": "app/config/parameters.yml"
91+
"file": "config/parameters.yml"
9492
}
9593
}
9694
}
File renamed without changes.

app/config/config.yml config/config.yml

+24-9
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,28 @@ imports:
44

55
framework:
66
#esi: ~
7-
translator: { fallback: en }
7+
translator:
8+
paths:
9+
- '%kernel.project_dir%/translations'
10+
fallback: en
811
secret: "%secret%"
912
router:
10-
resource: "%kernel.root_dir%/config/routing.yml"
13+
resource: "%kernel.project_dir%/config/routing.yml"
1114
strict_requirements: "%kernel.debug%"
1215
form: true
1316
csrf_protection: true
1417
validation: { enable_annotations: true }
1518
templating:
1619
engines: ['twig', 'php']
17-
assets_version: %assets_version%
18-
assets_version_format: %%s?version=%%s
20+
assets:
21+
version: %assets_version%
22+
version_format: %%s?version=%%s
1923
default_locale: "%locale%"
2024
trusted_proxies: ~
2125
session:
2226
name: BAPID
2327
handler_id: %session_handler%
24-
save_path: '%kernel.root_dir%/../var/sessions/%kernel.environment%'
28+
save_path: '%kernel.project_dir%/var/sessions/%kernel.environment%'
2529
gc_maxlifetime: 3600
2630
cookie_httponly: true
2731
fragments:
@@ -34,19 +38,20 @@ framework:
3438
twig:
3539
debug: "%kernel.debug%"
3640
strict_variables: "%kernel.debug%"
37-
exception_controller: "FOS\\RestBundle\\Controller\\ExceptionController::showAction"
41+
exception_controller: "Oro\\Bundle\\UIBundle\\Controller\\ExceptionController::showAction"
3842
globals:
3943
bap:
40-
layout: ::base.html.twig # default layout across all Oro bundles
44+
layout: base.html.twig # default layout across all Oro bundles
4145

4246
# Assetic Configuration
4347
assetic:
4448
debug: false
4549
use_controller: false
50+
read_from: %kernel.project_dir%/public
4651
filters:
4752
cssrewrite: ~
4853
cssmin:
49-
file: %kernel.root_dir%/Resources/php/cssmin-v3.0.1.php
54+
file: %kernel.project_dir%/var/php/cssmin-v3.0.1.php
5055

5156
# Swiftmailer Configuration
5257
swiftmailer:
@@ -110,7 +115,17 @@ lexik_maintenance:
110115
driver:
111116
class: Lexik\Bundle\MaintenanceBundle\Drivers\FileDriver
112117
options:
113-
file_path: %kernel.root_dir%/../var/cache/maintenance_lock
118+
file_path: %kernel.project_dir%/var/cache/maintenance_lock
119+
120+
liip_imagine:
121+
loaders:
122+
default:
123+
filesystem:
124+
data_root: %kernel.project_dir%/public
125+
resolvers:
126+
default:
127+
web_path:
128+
web_root: %kernel.project_dir%/public
114129

115130
#
116131
# ORO Bundles config

app/config/config_dev.yml config/config_dev.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ imports:
22
- { resource: config.yml }
33

44
framework:
5-
router: { resource: "%kernel.root_dir%/config/routing_dev.yml" }
5+
router: { resource: "%kernel.project_dir%/config/routing_dev.yml" }
66
profiler: { only_exceptions: false }
77

88
web_profiler:
File renamed without changes.
File renamed without changes.

app/config/dist/config.yml config/dist/config.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ imports:
44

55
framework:
66
#esi: ~
7-
translator: { fallback: en }
7+
translator:
8+
paths:
9+
- '%kernel.project_dir%/translations'
10+
fallback: en
811
secret: "%secret%"
912
router:
10-
resource: "%kernel.root_dir%/config/dist/routing.yml"
13+
resource: "%kernel.project_dir%/config/dist/routing.yml"
1114
strict_requirements: "%kernel.debug%"
1215
form: true
1316
csrf_protection: true
@@ -18,7 +21,7 @@ framework:
1821
session:
1922
name: BAPID_DIST
2023
handler_id: %session_handler%
21-
save_path: %kernel.root_dir%/cache/sessions
24+
save_path: %kernel.project_dir%/var/cache/sessions
2225
gc_maxlifetime: 3600
2326
cookie_httponly: true
2427
fragments:
@@ -29,10 +32,11 @@ framework:
2932
assetic:
3033
debug: false
3134
use_controller: false
35+
read_from: %kernel.project_dir%/public
3236
filters:
3337
cssrewrite: ~
3438
cssmin:
35-
file: %kernel.root_dir%/Resources/php/cssmin-v3.0.1.php
39+
file: %kernel.project_dir%/var/php/cssmin-v3.0.1.php
3640

3741
# Doctrine Configuration
3842
doctrine:
@@ -60,7 +64,7 @@ lexik_maintenance:
6064
driver:
6165
class: Lexik\Bundle\MaintenanceBundle\Drivers\FileDriver
6266
options:
63-
file_path: %kernel.root_dir%/cache/maintenance_lock
67+
file_path: %kernel.project_dir%/var/cache/maintenance_lock
6468

6569
services:
6670
oro.cache.abstract:

app/config/dist/config_dev.yml config/dist/config_dev.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ imports:
22
- { resource: config.yml }
33

44
framework:
5-
router: { resource: "%kernel.root_dir%/config/dist/routing_dev.yml" }
5+
router: { resource: "%kernel.project_dir%/config/dist/routing_dev.yml" }
66
profiler: { only_exceptions: false }
77

88
web_profiler:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

app/config/security_test.yml config/security_test.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ security:
44
cache:
55
id: security.acl.cache.doctrine
66
prefix: sf2_acl_
7-
7+
access_decision_manager:
8+
strategy: unanimous
89
firewalls:
910
main:
1011
pattern: ^%web_backend_prefix%/

0 commit comments

Comments
 (0)