Skip to content

Commit

Permalink
Updated the installer to just copy the YiinkerCommand file instead of…
Browse files Browse the repository at this point in the history
… echoing
  • Loading branch information
owenvoke committed Oct 24, 2017
1 parent dcf3b60 commit 4192d5e
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions install.sh
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!"

0 comments on commit 4192d5e

Please sign in to comment.