Skip to content

Commit

Permalink
Merge branch 'master' into 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
parkerj committed Oct 12, 2023
2 parents 48d67ad + c321526 commit 278bfc8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
9 changes: 6 additions & 3 deletions Application.php
Expand Up @@ -30,7 +30,7 @@ class Application extends Container
{
use InvokerAware;

public const APP_VERSION = '1.0.2';
public const APP_VERSION = '1.0.3';

public const MIN_PHP_VERSION = '8.2';

Expand Down Expand Up @@ -656,8 +656,11 @@ protected function coreAliases(): array
=> \Symfony\Component\Console\Input\ArgvInput::class,
\Symfony\Component\Console\Output\OutputInterface::class
=> \Symfony\Component\Console\Output\ConsoleOutput::class,
\Qubus\Http\Cookies\Factory\HttpCookieFactory::class => \Qubus\Http\Cookies\Factory\CookieFactory::class,
\Qubus\Http\Session\Storage\SessionStorage::class => \Qubus\Http\Session\Storage\SimpleCacheStorage::class,
\Qubus\Http\Cookies\Factory\HttpCookieFactory::class
=> \Qubus\Http\Cookies\Factory\CookieFactory::class,
\Qubus\Http\Session\Storage\SessionStorage::class
=> \Qubus\Http\Session\Storage\SimpleCacheStorage::class,
\Qubus\Http\Session\HttpSession::class => \Qubus\Http\Session\SessionData::class,
]
];
}
Expand Down
3 changes: 2 additions & 1 deletion Http/BaseController.php
Expand Up @@ -7,6 +7,7 @@
use Codefy\Framework\Contracts\RoutingController;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Qubus\Http\Session\HttpSession;
use Qubus\Routing\Controller\Controller;
use Qubus\Routing\Router;
use Qubus\View\Native\NativeLoader;
Expand All @@ -22,7 +23,7 @@ public function __construct(
protected ?ResponseInterface $response = null,
protected ?Router $router = null,
protected ?Renderer $view = null,

protected ?HttpSession $httpSession = null,
) {
$this->setRequest($request ?? app(name: ServerRequestInterface::class));
$this->response = $response ?? app(name: ResponseInterface::class);
Expand Down
3 changes: 2 additions & 1 deletion Http/Kernel.php
Expand Up @@ -7,6 +7,7 @@
use Codefy\Framework\Application;
use Codefy\Framework\Contracts\Kernel as HttpKernel;
use Exception;
use Laminas\HttpHandlerRunner\Emitter\SapiEmitter;
use Qubus\Error\Handlers\DebugErrorHandler;
use Qubus\Error\Handlers\ErrorHandler;
use Qubus\Error\Handlers\ProductionErrorHandler;
Expand Down Expand Up @@ -62,7 +63,7 @@ protected function dispatchRouter(): bool
files: $_FILES
)
),
emitter: null
emitter: new SapiEmitter()
);
}

Expand Down

0 comments on commit 278bfc8

Please sign in to comment.