Skip to content

Commit

Permalink
Merge pull request #5 from spiral/hotfix/started-to-booted
Browse files Browse the repository at this point in the history
Replace `started` with `booted`
  • Loading branch information
butschster committed May 16, 2022
2 parents 22934e0 + 762ce27 commit f87b37d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
},
"require-dev": {
"phpunit/phpunit": "^9.5.20",
"spiral/testing": "^1.2",
"vimeo/psalm": "^4.22",
"spiral/testing": "^2.0",
"vimeo/psalm": "^4.23",
"spiral/framework": "^3.0",
"nyholm/psr7": "^1.5.0"
},
Expand All @@ -39,7 +39,10 @@
"psalm": "vendor/bin/psalm --config=psalm.xml ./src"
},
"config": {
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"spiral/composer-publish-plugin": false
}
},
"extra": {
"branch-alias": {
Expand Down
2 changes: 1 addition & 1 deletion src/Bootloader/SapiBootloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function createEmitter(HttpConfig $config): SapiEmitter
public function init(AbstractKernel $kernel, FactoryInterface $factory): void
{
// Lowest priority
$kernel->started(static function (AbstractKernel $kernel) use ($factory): void {
$kernel->booted(static function (AbstractKernel $kernel) use ($factory): void {
$kernel->addDispatcher($factory->make(SapiDispatcher::class));
});
}
Expand Down

0 comments on commit f87b37d

Please sign in to comment.