Skip to content

Commit

Permalink
add symfony type information
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectricMaxxx committed Dec 9, 2017
1 parent d6bbdfc commit f114ea7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/projects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ block-bundle:
minimum_stability: dev
docs_path: 'bundles/block'
test_kernel: Symfony\Cmf\Bundle\BlockBundle\Tests\Fixtures\App\Kernel
deprecation_warnings: 0
php: ['7.1']
deprecation_warnings: "/.*each.*/"
php: ['7.1', '7.2']
make_tasks:
unit_tests: ~
functional_tests_phpcr: ~
Expand Down
4 changes: 4 additions & 0 deletions src/Console/Command/DispatchCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,10 @@ private function setVersionConstraintsInComposer($path, array $projectConfig, $c
unset($composerAsJson['prefer-stable']);
}

// add type information if not set
if (preg_match('/bundle/', $composerAsJson['name'])) {
$composerAsJson['type'] = 'symfony-bundle';
}
$composerAsString = json_encode($composerAsJson, JSON_PRETTY_PRINT);
$composerAsString = str_replace('\/', '/', $composerAsString);
$composerAsString .= PHP_EOL;
Expand Down

0 comments on commit f114ea7

Please sign in to comment.