Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf committed Dec 22, 2023
2 parents 4872908 + 21f44c8 commit 16f2857
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ sudo cp bin/phpx /usr/local/bin
cmake .
make -j 4
sudo make install
sudo ldconfig
```

## Create Project
Expand Down
8 changes: 4 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cd console
echo "composer update"
composer update
cd ../
cd console && \
echo "composer update" && \
composer update && \
cd ../ && \
/usr/bin/env php -d phar.readonly=off script/pack.php
7 changes: 6 additions & 1 deletion console/composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"require": {
"matyhtf/swoole_framework": "^1.20",
"matyhtf/framework": "^3.0",
"nikic/php-parser": "4.9.0"
},
"autoload": {
"psr-4": {
"phpx\\": "src/"
}
}
}
2 changes: 0 additions & 2 deletions console/console.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
use Symfony\Component\Console\Application;

define('WEBPATH', __DIR__);
Swoole\Loader::vendorInit();
Swoole\Loader::addNameSpace('phpx', __DIR__.'/src');

$application = new Application("PHP-X Console Tool", "0.0.1");
$application->add(new phpx\Command\Create());
Expand Down
2 changes: 1 addition & 1 deletion console/src/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace phpx;

use Swoole\Upload;
use SPF\Upload;
use Symfony\Component\Console\Exception\RuntimeException;

class Builder
Expand Down

0 comments on commit 16f2857

Please sign in to comment.