-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated the installer to just copy the YiinkerCommand file instead of…
… echoing
- Loading branch information
Showing
1 changed file
with
3 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,13 @@ | ||
#!/bin/bash | ||
|
||
echo "Installing Yiinker" | ||
|
||
mkdir -p commands | ||
touch commands/YiinkerCommand.php | ||
echo "<?php | ||
require (__DIR__ . '/../vendor/autoload.php'); | ||
class YiinkerCommand extends CConsoleCommand | ||
{ | ||
public function actionIndex() { | ||
echo 'Yiinker - Yii REPL application\n'; | ||
$_SERVER['argv'] = []; | ||
call_user_func(Psy\bin()); | ||
} | ||
}" >> commands/YiinkerCommand.php | ||
|
||
cp src/YiinkerCommand commands/YiinkerCommand.php | ||
|
||
composer require psy/psysh:@stable | ||
composer dump-autoload | ||
|
||
echo "Yiinker successfully installed!" |