Skip to content

Conversation

@dbu
Copy link
Contributor

@dbu dbu commented Feb 17, 2016

fix #266

@Tobion am i correct that this should go into the 1.3 branch? we want to delete this things for 2.0 so the deprecations would not really help there. i don't want to build a 1.4 version only for the migration like symfony 2.8 is - too much effort.
also, do you know how to make the deprecations helper not complain about our legacy tests? i tried the @legacy annotation on the test cases, but that did not seem help.

@dbu dbu force-pushed the trigger-deprecations branch from a997a10 to 8aa7a54 Compare February 17, 2016 10:25
@dbu
Copy link
Contributor Author

dbu commented Feb 17, 2016

ah, found the thing about legacy tests. @group legacy, not @legacy...

HttpCache.php Outdated

public function __construct(HttpKernelInterface $kernel, $cacheDir = null)
{
@trigger_error('The '.__CLASS__.' class is deprecated since version 1.2 and will be removed in 2.0. Use FOS\HttpCacheBundle\SymfonyCache\EventDispatchingHttpCache instead.', E_USER_DEPRECATED);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the whole class is deprecated, you could also put this above the class definition directly.

@Tobion
Copy link
Member

Tobion commented Feb 17, 2016

If there won't be a 1.4 version (the next one is 2.0), then it should indeed make it into 1.3

@dbu dbu force-pushed the trigger-deprecations branch from 8aa7a54 to 2e69cbe Compare February 18, 2016 17:59
HttpCache.php Outdated
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\HttpKernelInterface;

@trigger_error('The '.__CLASS__.' class is deprecated since version 1.2 and will be removed in 2.0. Use FOS\HttpCacheBundle\SymfonyCache\EventDispatchingHttpCache instead.', E_USER_DEPRECATED);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Tobion like this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ups. thanks

@dbu dbu force-pushed the trigger-deprecations branch from 2e69cbe to cb96b54 Compare February 18, 2016 21:45
dbu added a commit that referenced this pull request Feb 18, 2016
trigger deprecation notices for deprecated code
@dbu dbu merged commit 26e44bd into 1.3 Feb 18, 2016
@dbu dbu deleted the trigger-deprecations branch February 18, 2016 22:00
@lsmith77 lsmith77 removed the wip/poc label Feb 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants