Skip to content

Commit

Permalink
fix: Fixed bug that installation failed.
Browse files Browse the repository at this point in the history
Because the file composition has changed by the next PR of Code Igniter 4,
editing of a nonexistent file and deletion of the code that is about to be copied.

codeigniter4/CodeIgniter4#996
  • Loading branch information
Tetsuro Yoshikawa committed Jul 20, 2018
1 parent 51327fb commit c41e303
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ public static function postInstall(Event $event = null)
self::recursiveCopy('vendor/codeigniter4/framework/writable', 'writable');
self::recursiveCopy('vendor/codeigniter4/framework/tests', 'tests');
copy('vendor/codeigniter4/framework/spark', 'spark');
copy('vendor/codeigniter4/framework/rewrite.php', 'rewrite.php');
copy('vendor/codeigniter4/framework/serve', 'serve');
copy('vendor/codeigniter4/framework/phpunit.xml.dist', 'phpunit.xml.dist');
copy('vendor/codeigniter4/framework/.gitignore', '.gitignore');

Expand All @@ -44,16 +42,6 @@ public static function postInstall(Event $event = null)
);
file_put_contents($file, $contents);

// Fix paths in serve
$file = 'serve';
$contents = file_get_contents($file);
$contents = str_replace(
'require_once __DIR__.\'/system/',
'require_once __DIR__.\'/vendor/codeigniter4/framework/system/',
$contents
);
file_put_contents($file, $contents);

// Update composer.json
copy('composer.json.dist', 'composer.json');

Expand Down

0 comments on commit c41e303

Please sign in to comment.