ImageBundle icon indicating copy to clipboard operation
ImageBundle copied to clipboard

Symfony 5 support

Open Zausenec opened this issue 5 years ago • 9 comments

Need Sf5 support please! I found only the issue with this line https://github.com/Gregwar/ImageBundle/blob/cc4bc913b7662d3532b99ce4617de6f13fe1ac7d/DependencyInjection/Configuration.php#L28 kernel.root_dir is no longer supported, and it breaks container build

Zausenec avatar Dec 11 '19 11:12 Zausenec

Change -> scalarNode ('web_dir') -> defaultValue ('% kernel.project_root% / .. / web') -> end ()

by -> scalarNode ('web_dir') -> defaultValue ('% kernel.project_dir% / .. / web') -> end ()

sergioplaza avatar Jan 12 '20 00:01 sergioplaza

I now, but this is not generic and may cause BC break, so I can't contribute PR.

Zausenec avatar Jan 16 '20 17:01 Zausenec

@Gregwar Are you planning to release an SF5 compatible version of this bundle?

lordjancso avatar Jan 23 '20 11:01 lordjancso

Can't you ask for SF version? then call method with corresponding data. It will be still generic

aykonsvk avatar Feb 10 '20 19:02 aykonsvk

I have fixed issues with SF 5 on my fork would you merge it? Probably not into the master because of BC

aykonsvk avatar Feb 16 '20 02:02 aykonsvk

Hi, It should be OK now, I published a v3 that should be compliant to Sf5

BC is broken because we need Twig 2, but this is the work of composer, so I also bumped twig dependency to twig 2

Bundle worked for me on a simple test (image resize), ping me if any issue appear

Gregwar avatar Feb 17 '20 15:02 Gregwar

It cannot be installed in Symfony 5 since it is asking Twig3 dependency.

azhararmar avatar Mar 22 '20 02:03 azhararmar

The only Problem is the dependency "twig/twig": "^2.0" which limit to twig2 but symfony requires twig3. We need just the twig3 dependency in composer

pwnyprod avatar Apr 17 '20 20:04 pwnyprod

Ok, is it safe to bump

"twig/twig": "^1.12 || ^2.0"

To

"twig/twig": "^1.12 || ^2.0 || ^3.0"

Gregwar avatar Apr 20 '20 08:04 Gregwar