• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tempestphp / tempest-framework / 11944551735

20 Nov 2024 12:29PM UTC coverage: 81.993% (+0.3%) from 81.705%
11944551735

push

github

web-flow
refactor(console): update `make:controller` command parameters to be simpler (#761)

2 of 2 new or added lines in 2 files covered. (100.0%)

2 existing lines in 2 files now uncovered.

8032 of 9796 relevant lines covered (81.99%)

51.46 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

88.89
/src/Tempest/Console/src/Initializers/SchedulerInitializer.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Tempest\Console\Initializers;
6

7
use Tempest\Console\ConsoleApplication;
8
use Tempest\Console\Input\ConsoleArgumentBag;
9
use Tempest\Console\Scheduler;
10
use Tempest\Console\Scheduler\GenericScheduler;
11
use Tempest\Console\Scheduler\NullScheduler;
12
use Tempest\Console\Scheduler\SchedulerConfig;
13
use Tempest\Console\ShellExecutor;
14
use Tempest\Container\Container;
15
use Tempest\Container\Initializer;
16
use Tempest\Container\Singleton;
17
use Tempest\Core\Application;
18

19
final readonly class SchedulerInitializer implements Initializer
20
{
21
    #[Singleton]
4✔
22
    public function initialize(Container $container): Scheduler
23
    {
24
        $application = $container->get(Application::class);
4✔
25

26
        if (! $application instanceof ConsoleApplication) {
4✔
UNCOV
27
            return new NullScheduler();
×
28
        }
29

30
        return new GenericScheduler(
4✔
31
            $container->get(SchedulerConfig::class),
4✔
32
            $container->get(ConsoleArgumentBag::class),
4✔
33
            $container->get(ShellExecutor::class),
4✔
34
        );
4✔
35
    }
36
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc