Passed
Pull Request — master (#840)
by Maxim
12:40 queued 05:56
created

CustomizableBootloadManager::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 3
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Spiral\Boot\BootloadManager;
6
7
use Spiral\Core\ScopeInterface;
8
9
final class CustomizableBootloadManager extends AbstractBootloadManager
10
{
11 342
    public function __construct(
12
        private readonly InvokerStrategyInterface $invoker,
13
        ScopeInterface $scope,
14
        InitializerInterface $initializer
15
    ) {
16 342
        parent::__construct($scope, $initializer);
17
    }
18
19
    /**
20
     * Bootload all given bootloaders.
21
     *
22
     * @param array<class-string>|array<class-string, array<string,mixed>> $classes
0 ignored issues
show
Documentation Bug introduced by
The doc comment array<class-string>|arra...g, array<string,mixed>> at position 2 could not be parsed: Unknown type name 'class-string' at position 2 in array<class-string>|array<class-string, array<string,mixed>>.
Loading history...
23
     *
24
     * @throws \Throwable
25
     */
26 341
    protected function boot(array $classes, array $bootingCallbacks, array $bootedCallbacks): void
27
    {
28 341
        $this->invoker->invokeBootloaders($classes, $bootingCallbacks, $bootedCallbacks);
29
    }
30
}
31