Repository navigation
0.5.0
- Drop unnecessary
WebViewLoadingandWebViewLoadedevents (you can useWebViewNavigating,WebViewNavigatedandWebViewDomReadyinstead). - Added
WebViewRequestintention. - Drop middleware system and replace to events (intentions):
before
$app = new Application(new ApplicationCreateInfo(
schemes: [ 'https' ],
));
$pipeline = $app->webview->schemes->find('https')
?->append(new class implements MiddlewareInterface {
public function handle(RequestInterface $request, HandlerInterface $handler): Response
{
return new Response('<h1>Hello from "' . $request->url . '"!</h1>');
}
});
$app->webview->url = 'https://hello.world/';after
$app = new Application(new ApplicationCreateInfo(
schemes: [ 'https' ],
));
$app->events->addEventListener(WebViewRequest::class, function (WebViewRequest $e) {
$e->response = new Response('<h1>Hello from "' . $request->url . '"!</h1>');
});
$app->webview->url = 'https://hello.world/';- Added
Headers::first(),Headers::all()andHeader::contains()methods
Full Changelog: 0.4.0...0.5.0