|
@@ -5,11 +5,11 @@ discard block |
|
|
block discarded – undo |
|
5
|
5
|
} |
|
6
|
6
|
|
|
7
|
7
|
if (!defined('APPLICATION_ROOT_DIR')) { |
|
8
|
|
- define('APPLICATION_ROOT_DIR', __DIR__ . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR); |
|
|
8
|
+ define('APPLICATION_ROOT_DIR', __DIR__.DIRECTORY_SEPARATOR.'app'.DIRECTORY_SEPARATOR); |
|
9
|
9
|
} |
|
10
|
10
|
|
|
11
|
11
|
if (!defined('APPLICATION_VENDOR_DIR')) { |
|
12
|
|
- define('APPLICATION_VENDOR_DIR', APPLICATION_ROOT_DIR . 'vendor'); |
|
|
12
|
+ define('APPLICATION_VENDOR_DIR', APPLICATION_ROOT_DIR.'vendor'); |
|
13
|
13
|
} |
|
14
|
14
|
|
|
15
|
15
|
if (!defined('APPLICATION_STORE')) { |
|
@@ -21,14 +21,14 @@ discard block |
|
|
block discarded – undo |
|
21
|
21
|
} |
|
22
|
22
|
|
|
23
|
23
|
if (!defined('APPLICATION_SOURCE_DIR')) { |
|
24
|
|
- define('APPLICATION_SOURCE_DIR', APPLICATION_ROOT_DIR . 'src' . DIRECTORY_SEPARATOR); |
|
|
24
|
+ define('APPLICATION_SOURCE_DIR', APPLICATION_ROOT_DIR.'src'.DIRECTORY_SEPARATOR); |
|
25
|
25
|
} |
|
26
|
26
|
|
|
27
|
27
|
if (!defined('MODULE_UNDER_TEST_ROOT_DIR')) { |
|
28
|
28
|
define('MODULE_UNDER_TEST_ROOT_DIR', ''); |
|
29
|
29
|
} |
|
30
|
30
|
|
|
31
|
|
-spl_autoload_register(function ($className) { |
|
|
31
|
+spl_autoload_register(function($className) { |
|
32
|
32
|
if ( |
|
33
|
33
|
strrpos($className, 'Transfer') === false |
|
34
|
34
|
&& strrpos($className, 'Builder') === false |
|
@@ -38,8 +38,8 @@ discard block |
|
|
block discarded – undo |
|
38
|
38
|
} |
|
39
|
39
|
|
|
40
|
40
|
$classNameParts = explode('\\', $className); |
|
41
|
|
- $fileName = implode(DIRECTORY_SEPARATOR, $classNameParts) . '.php'; |
|
42
|
|
- $filePath = APPLICATION_ROOT_DIR . 'src' . DIRECTORY_SEPARATOR . $fileName; |
|
|
41
|
+ $fileName = implode(DIRECTORY_SEPARATOR, $classNameParts).'.php'; |
|
|
42
|
+ $filePath = APPLICATION_ROOT_DIR.'src'.DIRECTORY_SEPARATOR.$fileName; |
|
43
|
43
|
|
|
44
|
44
|
if (!file_exists($filePath)) { |
|
45
|
45
|
return false; |
|
@@ -50,17 +50,17 @@ discard block |
|
|
block discarded – undo |
|
50
|
50
|
return true; |
|
51
|
51
|
}); |
|
52
|
52
|
|
|
53
|
|
-$configSourceDirectory = APPLICATION_ROOT_DIR . '..' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'Shared' . DIRECTORY_SEPARATOR; |
|
54
|
|
-$configTargetDirectory = APPLICATION_ROOT_DIR . 'config' . DIRECTORY_SEPARATOR . 'Shared' . DIRECTORY_SEPARATOR; |
|
|
53
|
+$configSourceDirectory = APPLICATION_ROOT_DIR.'..'.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'Shared'.DIRECTORY_SEPARATOR; |
|
|
54
|
+$configTargetDirectory = APPLICATION_ROOT_DIR.'config'.DIRECTORY_SEPARATOR.'Shared'.DIRECTORY_SEPARATOR; |
|
55
|
55
|
|
|
56
|
56
|
if (!is_dir($configTargetDirectory)) { |
|
57
|
57
|
mkdir($configTargetDirectory, 0777, true); |
|
58
|
58
|
} |
|
59
|
59
|
|
|
60
|
|
-copy($configSourceDirectory . 'config_propel.php', $configTargetDirectory . 'config_propel.php'); |
|
61
|
|
-copy($configSourceDirectory . 'config_default.php', $configTargetDirectory . 'config_default.php'); |
|
62
|
|
-copy($configSourceDirectory . 'default_store.php', $configTargetDirectory . 'default_store.php'); |
|
63
|
|
-copy($configSourceDirectory . 'stores.php', $configTargetDirectory . 'stores.php'); |
|
|
60
|
+copy($configSourceDirectory.'config_propel.php', $configTargetDirectory.'config_propel.php'); |
|
|
61
|
+copy($configSourceDirectory.'config_default.php', $configTargetDirectory.'config_default.php'); |
|
|
62
|
+copy($configSourceDirectory.'default_store.php', $configTargetDirectory.'default_store.php'); |
|
|
63
|
+copy($configSourceDirectory.'stores.php', $configTargetDirectory.'stores.php'); |
|
64
|
64
|
|
|
65
|
65
|
$config = \Spryker\Shared\Config\Config::getInstance(); |
|
66
|
66
|
|