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

valksor / php-dev-build / 19202038340

09 Nov 2025 02:25AM UTC coverage: 17.283% (-0.9%) from 18.191%
19202038340

push

github

k0d3r1s
update documentation

383 of 2216 relevant lines covered (17.28%)

0.92 hits per line

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

0.0
/Provider/HotReloadProvider.php
1
<?php declare(strict_types = 1);
2

3
/*
4
 * This file is part of the Valksor package.
5
 *
6
 * (c) Davis Zalitis (k0d3r1s)
7
 * (c) SIA Valksor <packages@valksor.com>
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12

13
namespace ValksorDev\Build\Provider;
14

15
use Symfony\Component\Console\Command\Command;
16
use ValksorDev\Build\Service\ProcessManager;
17
use ValksorDev\Build\Util\ConsoleCommandBuilder;
18

19
/**
20
 * Provider for hot reload service (development only with file watching).
21
 */
22
final class HotReloadProvider implements ProviderInterface
23
{
24
    public function __construct(
25
        private readonly ConsoleCommandBuilder $commandBuilder,
26
        private readonly ProcessManager $processManager,
27
    ) {
28
    }
×
29

30
    public function build(
31
        array $options,
32
    ): int {
33
        // Hot reload is development only, nothing to build
34
        return Command::SUCCESS;
×
35
    }
36

37
    public function getDependencies(): array
38
    {
39
        return []; // No dependencies
×
40
    }
41

42
    public function getName(): string
43
    {
44
        return 'hot_reload';
×
45
    }
46

47
    public function getServiceOrder(): int
48
    {
49
        return 30; // Run after binaries and tailwind
×
50
    }
51

52
    public function init(
53
        array $options,
54
    ): void {
55
        // Hot reload doesn't need initialization
56
    }
×
57

58
    public function watch(
59
        array $options,
60
    ): int {
61
        // Hot reload command now gets configuration directly from the service
62
        // No need to pass command-line options - configuration is handled internally
63
        $arguments = $this->commandBuilder->buildArguments('valksor:hot-reload');
×
64
        $isInteractive = $options['interactive'] ?? true;
×
65

66
        return $this->processManager->executeProcess($arguments, $isInteractive, 'Hot reload service');
×
67
    }
68
}
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