Skip to content

Commit

Permalink
Merge pull request #35 from utopia-php/feat-framework-upgrade
Browse files Browse the repository at this point in the history
Feat: Upgrade HTTP library
  • Loading branch information
TorstenDittmann committed Jan 24, 2024
2 parents 5b93663 + db453d9 commit 0829fd5
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"require": {
"php": ">=7.4",
"utopia-php/framework": "0.*.*"
"utopia-php/framework": "0.34.*"
},
"require-dev": {
"phpunit/phpunit": "^9.3",
Expand Down
4 changes: 2 additions & 2 deletions src/CLI/CLI.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion src/CLI/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Utopia\CLI;

use Utopia\Hook;
use Utopia\Http\Hook;

class Task extends Hook
{
Expand Down
4 changes: 2 additions & 2 deletions tests/CLI/CLITest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion tests/CLI/TaskTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 0829fd5

Please sign in to comment.