Skip to content

Commit

Permalink
changed dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ytake committed Apr 15, 2020
1 parent 8714f2e commit 194f5cf
Show file tree
Hide file tree
Showing 22 changed files with 33 additions and 36 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Nazg Micro Framework Core Repository

[![Packagist](https://img.shields.io/badge/HHVM-%3E=4.35-orange.svg?style=flat-square)](https://packagist.org/packages/nazg/framework)
[![Packagist](https://img.shields.io/badge/HHVM-%3E=4.41-orange.svg?style=flat-square)](https://packagist.org/packages/nazg/framework)
[![Packagist](https://img.shields.io/packagist/l/nazg/framework.svg?style=flat-square)](https://packagist.org/packages/nazg/framework)
[![Build Status](http://img.shields.io/travis/nazg-hack/framework/master.svg?style=flat-square)](https://travis-ci.org/nazg-hack/framework)

Http Application / MicroFramework for HHVM/Hack

## Supported

HHVM 4.35 and above.
HHVM 4.41 and above.

## Usage

Expand Down
22 changes: 10 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,20 @@
}
],
"require": {
"hhvm": "^4.35",
"hhvm": "^4.41",
"hhvm/hsl": "^4.0",
"hhvm/hsl-experimental": "^4.25",
"hhvm/hsl-experimental": "^4.50",
"hhvm/hhvm-autoload": "^3.0",
"hhvm/type-assert": "^3.7",
"hack-psr/psr7-http-message-hhi": "^1.0.0",
"ytake/hungrr": "^0.9.0",
"ytake/hungrr": "^0.10.0",
"ytake/hhypermedia": "^0.5.0",
"nazg/glue": "^1.4.0",
"nazg/heredity": "^1.9",
"nazg/glue": "^1.4",
"nazg/heredity": "^1.10.0",
"nazg/hcache": "^0.5.0",
"nazg/http-server-request-handler": "^0.5",
"nazg/http-executor": "^0.9",
"facebook/hack-router": ">=0.17 <1.0",
"facebook/hack-http-request-response-interfaces": "^0.2",
"hack-logging/hack-logging": "^0.4.0"
"nazg/http-server-request-handler": "^0.6.0",
"nazg/http-executor": "^0.10.0",
"facebook/hack-router": "^0.19.6",
"facebook/hack-http-request-response-interfaces": "^0.3",
"hack-logging/hack-logging": "^0.5.0"
},
"require-dev": {
"facebook/fbexpect": "^2.6.1",
Expand Down
3 changes: 1 addition & 2 deletions src/Exception/ExceptionHandler.hack
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ use type Nazg\HttpExecutor\Emitter\EmitterInterface;
use type Facebook\Experimental\Http\Message\ResponseInterface;
use type Facebook\Experimental\Http\Message\UriInterface;
use type Ytake\Hungrr\StatusCode;
use namespace HH\Lib\{Dict, C};
use namespace HH\Lib\Experimental\IO;
use namespace HH\Lib\{Dict, C, IO};
use function get_class;
use function is_array;
use function json_encode;
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/ExceptionHandlerProvider.hack
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Nazg\Exception;
use type Nazg\Glue\Container;
use type Nazg\Glue\ProviderInterface;
use type Nazg\HttpExecutor\Emitter\EmitterInterface;
use namespace HH\Lib\Experimental\IO;
use namespace HH\Lib\IO;

class ExceptionHandlerProvider implements ProviderInterface<ExceptionHandleInterface> {

Expand Down
2 changes: 1 addition & 1 deletion src/Foundation/Application.hack
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use type Nazg\Glue\Container;
use type Nazg\HttpExecutor\AsyncRequestHandleExecutor;

use namespace Nazg\HttpExecutor\Emitter;
use namespace HH\Lib\Experimental\IO;
use namespace HH\Lib\IO;
use namespace Nazg\Middleware;
use namespace HH\Lib\Vec;

Expand Down
2 changes: 1 addition & 1 deletion src/Foundation/ApplicationProvider.hack
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use type HackLogging\Logger;
use namespace Nazg\Logger;
use namespace Nazg\Exception;
use namespace Nazg\HttpExecutor\Emitter;
use namespace HH\Lib\Experimental\IO;
use namespace HH\Lib\IO;

final class ApplicationProvider extends ServiceProvider {

Expand Down
2 changes: 1 addition & 1 deletion src/Http/VndErrorResponse.hack
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Nazg\Http;
use type Ytake\Hungrr\Response\JsonResponse;
use type Ytake\Hungrr\StatusCode;
use type Ytake\Hungrr\Response\InjectContentTypeTrait;
use namespace HH\Lib\Experimental\IO;
use namespace HH\Lib\IO;

final class VndErrorResponse extends JsonResponse {

Expand Down
2 changes: 1 addition & 1 deletion src/Logger/LoggerProvider.hack
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use type Nazg\Glue\ProviderInterface;
use type Nazg\Foundation\ApplicationConfig;
use type HackLogging\Logger;
use type HackLogging\Handler\FilesystemHandler;
use namespace HH\Lib\Experimental\File;
use namespace HH\Lib\File;

final class LoggerProvider implements ProviderInterface<Logger> {

Expand Down
2 changes: 1 addition & 1 deletion src/Middleware/Dispatcher.hack
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
namespace Nazg\Middleware;

use type HH\Lib\Experimental\IO\CloseableWriteHandle;
use type HH\Lib\IO\CloseableWriteHandle;
use type Nazg\Heredity\AsyncHeredity;
use type Nazg\Glue\Container;
use type Nazg\Http\Server\AsyncMiddlewareInterface;
Expand Down
2 changes: 1 addition & 1 deletion src/Middleware/LogExceptionMiddleware.hack
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace Nazg\Middleware;

use type HackLogging\Logger;
use type HackLogging\LogLevel;
use type HH\Lib\Experimental\IO\CloseableWriteHandle;
use type HH\Lib\IO\CloseableWriteHandle;
use type Facebook\Experimental\Http\Message\ResponseInterface;
use type Facebook\Experimental\Http\Message\ServerRequestInterface;
use type Nazg\Http\Server\AsyncMiddlewareInterface;
Expand Down
2 changes: 1 addition & 1 deletion src/Middleware/SimpleCorsMiddleware.hack
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Nazg\Middleware;
use type Facebook\HackRouter\HttpMethod;
use type Facebook\Experimental\Http\Message\ResponseInterface;
use type Facebook\Experimental\Http\Message\ServerRequestInterface;
use type HH\Lib\Experimental\IO\CloseableWriteHandle;
use type HH\Lib\IO\CloseableWriteHandle;
use type Nazg\Http\Server\AsyncMiddlewareInterface;
use type Nazg\Http\Server\AsyncRequestHandlerInterface;
use function implode;
Expand Down
2 changes: 1 addition & 1 deletion src/RequestHandler/AsyncFallbackHandler.hack
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
namespace Nazg\RequestHandler;

use type HH\Lib\Experimental\IO\WriteHandle;
use type HH\Lib\IO\WriteHandle;
use type Facebook\Experimental\Http\Message\ResponseInterface;
use type Facebook\Experimental\Http\Message\ServerRequestInterface;
use type Nazg\Http\Server\AsyncRequestHandlerInterface;
Expand Down
2 changes: 1 addition & 1 deletion tests/ApplicationTest.hack
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use type Facebook\HackTest\HackTest;
use type Nazg\Glue\{Container, DependencyFactory};
use type Ytake\Hungrr\ServerRequestFactory;
use type Facebook\Experimental\Http\Message\HTTPMethod;
use namespace HH\Lib\Experimental\IO;
use namespace HH\Lib\IO;
use namespace Nazg\Foundation;
use function Facebook\FBExpect\expect;

Expand Down
2 changes: 1 addition & 1 deletion tests/Exception/ExceptionHandlerTest.hack
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use type Nazg\Exception\ExceptionHandler;
use type Nazg\Exception\ExceptionRegister;
use type Nazg\Exception\ExceptionHandlerProvider;
use type Nazg\Exception\NotFoundHttpException;
use namespace HH\Lib\Experimental\IO;
use namespace HH\Lib\IO;
use namespace Nazg\HttpExecutor\Emitter;

final class ExceptionHandlerTest extends HackTest {
Expand Down
2 changes: 1 addition & 1 deletion tests/Http/VndErrorResponseTest.hack
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use type Nazg\Http\VndErrorResponse;
use type Ytake\Hungrr\StatusCode;
use type Facebook\HackTest\HackTest;
use namespace HH\Lib\Experimental\IO;
use namespace HH\Lib\IO;
use function Facebook\FBExpect\expect;

final class VndErrorResponseTest extends HackTest {
Expand Down
4 changes: 2 additions & 2 deletions tests/Logger/LoggerProviderTest.hack
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use type Nazg\Glue\{Container, DependencyFactory};
use type Nazg\Foundation\ApplicationConfig;
use type HackLogging\Logger;
use type Facebook\HackTest\HackTest;
use namespace HH\Lib\Experimental\File;
use namespace HH\Lib\File;
use function Facebook\FBExpect\expect;

final class LoggerProviderTest extends HackTest {
Expand All @@ -14,7 +14,7 @@ final class LoggerProviderTest extends HackTest {
$container->bind(ApplicationConfig::class)
->to(ApplicationConfig::class);
expect(() ==> $logger->get($container))
->toThrow(\HH\Lib\Experimental\OS\Exception::class);
->toThrow(\HH\Lib\OS\Exception::class);
}

public function testShouldReturnLoggerInstance(): void {
Expand Down
2 changes: 1 addition & 1 deletion tests/Middleware/FakeActionMiddleware.hack
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use type HH\Lib\Experimental\IO\CloseableWriteHandle;
use type HH\Lib\IO\CloseableWriteHandle;
use type Facebook\Experimental\Http\Message\ResponseInterface;
use type Facebook\Experimental\Http\Message\ServerRequestInterface;
use type Nazg\Http\Server\AsyncMiddlewareInterface;
Expand Down
2 changes: 1 addition & 1 deletion tests/Middleware/FakeThrowExceptionMiddleware.hack
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use type HH\Lib\Experimental\IO\CloseableWriteHandle;
use type HH\Lib\IO\CloseableWriteHandle;
use type Facebook\Experimental\Http\Message\ResponseInterface;
use type Facebook\Experimental\Http\Message\ServerRequestInterface;
use type Nazg\Http\Server\AsyncMiddlewareInterface;
Expand Down
2 changes: 1 addition & 1 deletion tests/Middleware/LogExceptionMiddlewareTest.hack
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use type Nazg\RequestHandler\AsyncFallbackHandler;
use type Nazg\Foundation\ApplicationConfig;
use namespace Nazg\Logger;
use namespace Nazg\Middleware;
use namespace HH\Lib\Experimental\IO;
use namespace HH\Lib\IO;
use function Facebook\FBExpect\expect;

final class LogExceptionMiddlewareTest extends HackTest {
Expand Down
2 changes: 1 addition & 1 deletion tests/Middleware/SimpleCorsMiddlewareTest.hack
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use type Nazg\RequestHandler\AsyncFallbackHandler;
use type Nazg\Foundation\ApplicationConfig;
use namespace Nazg\Logger;
use namespace Nazg\Middleware;
use namespace HH\Lib\Experimental\IO;
use namespace HH\Lib\IO;
use function Facebook\FBExpect\expect;

final class SimpleCorsMiddlewareTest extends HackTest {
Expand Down
2 changes: 1 addition & 1 deletion tests/Routing/RouterTest.hack
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use type Ytake\Hungrr\ServerRequestFactory;
use type Facebook\Experimental\Http\Message\HTTPMethod;
use type Facebook\HackRouter\BaseRouter;

use namespace HH\Lib\Experimental\IO;
use namespace HH\Lib\IO;

use function Facebook\FBExpect\expect;

Expand Down
2 changes: 1 addition & 1 deletion tests/Validation/ValidatorTest.hack
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use type Nazg\Validation\ValidationException;
use type Facebook\HackTest\HackTest;
use type Ytake\Hungrr\ServerRequestFactory;
use namespace Facebook\TypeAssert;
use namespace HH\Lib\Experimental\IO;
use namespace HH\Lib\IO;
use function Facebook\FBExpect\expect;

class ValidatorTest extends HackTest {
Expand Down

0 comments on commit 194f5cf

Please sign in to comment.