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

api-platform / core / 10972064847

21 Sep 2024 11:06AM UTC coverage: 7.462% (-0.4%) from 7.833%
10972064847

push

github

web-flow
fix(laravel): installation command, fix config overwrites (#6649)

added the installation command, but as a bug fix since configs are currently getting overwritten.

Closes: #6645

0 of 9 new or added lines in 2 files covered. (0.0%)

307 existing lines in 30 files now uncovered.

12303 of 164886 relevant lines covered (7.46%)

27.02 hits per line

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

0.0
/src/Laravel/Console/InstallCommand.php
1
<?php
2

3
/*
4
 * This file is part of the API Platform project.
5
 *
6
 * (c) Kévin Dunglas <dunglas@gmail.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11

12
declare(strict_types=1);
13

14
namespace ApiPlatform\Laravel\Console;
15

16
use Illuminate\Console\Command;
17
use Symfony\Component\Console\Attribute\AsCommand;
18

19
#[AsCommand(name: 'api-platform:install')]
20
class InstallCommand extends Command
21
{
22
    /**
23
     * @var string
24
     */
25
    protected $signature = 'api-platform:install';
26

27
    /**
28
     * @var string
29
     */
30
    protected $description = 'Install all of the API Platform resources';
31

32
    /**
33
     * Execute the console command.
34
     */
35
    public function handle(): void
36
    {
NEW
37
        $this->comment('Publishing API Platform Assets...');
×
NEW
38
        $this->callSilent('vendor:publish', ['--tag' => 'api-platform-assets']);
×
39

NEW
40
        $this->comment('Publishing API Platform Configuration...');
×
NEW
41
        $this->callSilent('vendor:publish', ['--tag' => 'api-platform-config']);
×
42

NEW
43
        $this->info('API Platform installed successfully.');
×
44
    }
45
}
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

© 2025 Coveralls, Inc