slugify icon indicating copy to clipboard operation
slugify copied to clipboard

Symfony Flex Recipe

Open kiler129 opened this issue 6 years ago • 6 comments

The bundle integrates nicely with Symfony, but I discovered setup has to be done manually. Maybe the maintainer can add Symfony Flex recipe for 4.x integration?

kiler129 avatar Jun 29 '18 14:06 kiler129

The package type is library. A Symfony Flex recipe only works when packages are type of symfony-bundle (among other validation rules).

Spomky avatar Jul 09 '18 08:07 Spomky

@Spomky but it is shipped with a bundle implementation, so a receipe would be a great idea!

OskarStark avatar Jul 16 '18 08:07 OskarStark

Sure it is a great idea. What I wanted to highlight is that you cannot create a Flex receipe using this library as-is unless the package type is changed from library to symfony-bundle.

Spomky avatar Jul 16 '18 08:07 Spomky

@Spomky I can only add one type to composer.json, right? The problem is that this repo is not only a symfony-bundle that offers integrations to a bunch of different frameworks. Labelling as a symfony-bundle in Composer would confuse more people than it helps, I think.

florianeckerstorfer avatar Sep 19 '18 20:09 florianeckerstorfer

A Symfony Flex recipe only works when packages are type of symfony-bundle

but only

if a bundle is registered in the manifest

PHP CS Fixer has recipe beign library.

kubawerlos avatar Sep 19 '18 21:09 kubawerlos

Hey, the symfony bundle version will be available soon. But a flex recipe is not recommended, if the bundle has no configuration. This new bundle will have the same configuration as now, but it'll have no default configuration. See https://github.com/symfony/recipes.

DemigodCode avatar Dec 11 '18 10:12 DemigodCode