Skip to content

Commit

Permalink
Merge pull request #1551 from samsonasik/composer-script-reduce-manua…
Browse files Browse the repository at this point in the history
…l-define-system-dir

remove manual define "system/" directory prefix at ComposerScripts
  • Loading branch information
jim-parry authored Dec 6, 2018
2 parents 41065e7 + 70292c9 commit 8714368
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions system/ComposerScripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
*/
class ComposerScripts
{
protected static $basePath = 'system/ThirdParty/';
protected static $basePath = 'ThirdParty/';

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

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

if (is_file($filename))
{
$base = static::$basePath . 'Kint';
$base = basename(__DIR__) . '/' . static::$basePath . 'Kint';

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

0 comments on commit 8714368

Please sign in to comment.