aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2017-08-30 15:51:54 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2017-08-30 15:51:54 +0200
commita4d48d498b2c2d88ab8d8fed6f4085d4fa121855 (patch)
tree01c0bf10ae81e3eb6ca423cb41e8a04a00103f8f
parent950d1e0b9f2352d62dc92d54497084c08647e1d1 (diff)
downloadCli-a4d48d498b2c2d88ab8d8fed6f4085d4fa121855.zip
Cli-a4d48d498b2c2d88ab8d8fed6f4085d4fa121855.tar.gz
Cli-a4d48d498b2c2d88ab8d8fed6f4085d4fa121855.tar.bz2
chore(php) Move to PHP 7.
-rw-r--r--Bin/Hoa.php4
-rw-r--r--README.md2
-rw-r--r--composer.json15
3 files changed, 12 insertions, 9 deletions
diff --git a/Bin/Hoa.php b/Bin/Hoa.php
index 73189c0..0f1a633 100644
--- a/Bin/Hoa.php
+++ b/Bin/Hoa.php
@@ -71,12 +71,14 @@ if (!defined('HOA')) {
dirname(__DIR__) . DIRECTORY_SEPARATOR .
'..' . DIRECTORY_SEPARATOR .
'Consistency' . DIRECTORY_SEPARATOR .
+ 'Source' . DIRECTORY_SEPARATOR .
'Prelude.php';
require_once
dirname(__DIR__) . DIRECTORY_SEPARATOR .
'..' . DIRECTORY_SEPARATOR .
'Protocol' . DIRECTORY_SEPARATOR .
+ 'Source' . DIRECTORY_SEPARATOR .
'Wrapper.php';
}
}
@@ -107,7 +109,7 @@ try {
'synchronous.able'
=> 'main'
]);
- $dispatcher->setKitName('Hoa\Console\Dispatcher\Kit');
+ $dispatcher->setKitName(Console\Dispatcher\Kit::class);
exit((int) $dispatcher->dispatch($router));
} catch (Exception $e) {
$message = $e->raise(true);
diff --git a/README.md b/README.md
index e9b04e5..f3b005c 100644
--- a/README.md
+++ b/README.md
@@ -35,7 +35,7 @@ your dependencies, you need to
require [`hoa/cli`](https://packagist.org/packages/hoa/cli):
```sh
-$ composer require hoa/cli '~2.0'
+$ composer require hoa/cli '~3.0'
```
For more installation procedures, please read [the Source
diff --git a/composer.json b/composer.json
index 17cc419..8e65403 100644
--- a/composer.json
+++ b/composer.json
@@ -23,12 +23,13 @@
"source": "https://central.hoa-project.net/Resource/Library/Cli"
},
"require": {
- "hoa/consistency": "~1.0",
- "hoa/console" : "~3.0",
- "hoa/dispatcher" : "~1.0",
- "hoa/exception" : "~1.0",
- "hoa/protocol" : "~1.0",
- "hoa/router" : "~3.0"
+ "php" : ">=7.1",
+ "hoa/consistency": "~2.0",
+ "hoa/console" : "~4.0",
+ "hoa/dispatcher" : "~2.0",
+ "hoa/exception" : "~2.0",
+ "hoa/protocol" : "~2.0",
+ "hoa/router" : "~4.0"
},
"autoload": {
"psr-4": {
@@ -41,7 +42,7 @@
"bin" : ["Bin/hoa"],
"extra": {
"branch-alias": {
- "dev-master": "2.x-dev"
+ "dev-master": "3.x-dev"
}
}
}