Skip to content

Commit 8714368

Browse files
authored
Merge pull request #1551 from samsonasik/composer-script-reduce-manual-define-system-dir
remove manual define "system/" directory prefix at ComposerScripts
2 parents 41065e7 + 70292c9 commit 8714368

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

system/ComposerScripts.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
*/
5050
class ComposerScripts
5151
{
52-
protected static $basePath = 'system/ThirdParty/';
52+
protected static $basePath = 'ThirdParty/';
5353

5454
/**
5555
* After composer install/update, this is called to move
@@ -144,7 +144,7 @@ public static function moveEscaper()
144144
{
145145
if (class_exists('\\Zend\\Escaper\\Escaper') && is_file(static::getClassFilePath('\\Zend\\Escaper\\Escaper')))
146146
{
147-
$base = static::$basePath . 'ZendEscaper';
147+
$base = basename(__DIR__) . '/' . static::$basePath . 'ZendEscaper';
148148

149149
foreach ([$base, $base . '/Exception'] as $path)
150150
{
@@ -183,7 +183,7 @@ public static function moveKint()
183183

184184
if (is_file($filename))
185185
{
186-
$base = static::$basePath . 'Kint';
186+
$base = basename(__DIR__) . '/' . static::$basePath . 'Kint';
187187

188188
// Remove the contents of the previous Kint folder, if any.
189189
if (is_dir($base))

0 commit comments

Comments
 (0)