diff --git a/README.md b/README.md index 11155cb..795785e 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ require_once './vendor/autoload.php'; use Utopia\CLI\CLI; use Utopia\CLI\Console; -use Utopia\Validator\Wildcard; +use Utopia\Http\Validator\Wildcard; $cli = new CLI(); @@ -50,9 +50,9 @@ There are three types of hooks, init hooks, shutdown hooks and error hooks. Init ```php require_once __DIR__ . '/../../vendor/autoload.php'; -use Utopia\App; -use Utopia\Request; -use Utopia\Response; +use Utopia\CLI\CLI; +use Utopia\CLI\Console; +use Utopia\Http\Validator\Wildcard; CLI::setResource('res1', function() { return 'resource 1'; diff --git a/composer.json b/composer.json index 08d0d90..49e8f61 100755 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ }, "require": { "php": ">=7.4", - "utopia-php/framework": "0.*.*" + "utopia-php/framework": "0.34.*" }, "require-dev": { "phpunit/phpunit": "^9.3", diff --git a/src/CLI/CLI.php b/src/CLI/CLI.php index 0f437e8..042d9e2 100644 --- a/src/CLI/CLI.php +++ b/src/CLI/CLI.php @@ -3,8 +3,8 @@ namespace Utopia\CLI; use Exception; -use Utopia\Hook; -use Utopia\Validator; +use Utopia\Http\Hook; +use Utopia\Http\Validator; class CLI { diff --git a/src/CLI/Task.php b/src/CLI/Task.php index 55b5e8c..a28cd9f 100644 --- a/src/CLI/Task.php +++ b/src/CLI/Task.php @@ -2,7 +2,7 @@ namespace Utopia\CLI; -use Utopia\Hook; +use Utopia\Http\Hook; class Task extends Hook { diff --git a/tests/CLI/CLITest.php b/tests/CLI/CLITest.php index 26d61ab..78a1992 100755 --- a/tests/CLI/CLITest.php +++ b/tests/CLI/CLITest.php @@ -4,8 +4,8 @@ use PHPUnit\Framework\TestCase; use Utopia\CLI\CLI; -use Utopia\Validator\ArrayList; -use Utopia\Validator\Text; +use Utopia\Http\Validator\ArrayList; +use Utopia\Http\Validator\Text; class CLITest extends TestCase { diff --git a/tests/CLI/TaskTest.php b/tests/CLI/TaskTest.php index 992d27c..ec15613 100755 --- a/tests/CLI/TaskTest.php +++ b/tests/CLI/TaskTest.php @@ -4,7 +4,7 @@ use PHPUnit\Framework\TestCase; use Utopia\CLI\Task; -use Utopia\Validator\Text; +use Utopia\Http\Validator\Text; class TaskTest extends TestCase {