deprecated

Symfony 4.4 deprecation warning for multiple clients in user test is deprecated, still present in documentation

匆匆过客 提交于 2020-08-27 17:04:07
问题 Symfony version(s) affected : 4.4.0 Description After upgrading to Symfony 4.4.0 I got the following deprecation warning: Calling "Symfony\Bundle\FrameworkBundle\Test\WebTestCase::createClient()" while a kernel has been booted is deprecated since Symfony 4.4 and will throw in 5.0, ensure the kernel is shut down before calling the method. However, I do the same as in the documentation (https://symfony.com/doc/current/testing/insulating_clients.html), this also gives the same deprecation

Replacement for <center>

耗尽温柔 提交于 2020-08-21 04:16:06
问题 This has been asked before by other people, but I've never seen an adequate answer. Is there a valid replacement to the <center> tag? I know there's margin: 0 auto; , but that requires setting a width. There's also align="center" , but I believe that that's invalid code as well. Is there something as simple as <center> that's valid? There are rare occasions where I still end up using it, even though it is deprecated. Just today, I ended up using a <center> to center the one button that needed