Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Upgrade HTTP library #35

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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