use Symfony\Component\DependencyInjection\ContainerInterface;
6
7
/**
8
* @deprecated since 1.11 and will be removed in 2.0. Use ContainerEntityListenerResolver instead.
9
*/
10
class ContainerAwareEntityListenerResolver extends ContainerEntityListenerResolver
11
{
12
public function __construct(ContainerInterface $container)
13
{
14
@trigger_error(sprintf('The class "%s" is deprecated since 1.11 and will be removed in 2.0. Use "%s" instead.', self::class, 'Doctrine\Bundle\DoctrineBundle\Mapping\ContainerEntityListenerResolver'), E_USER_DEPRECATED);
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.
If you suppress an error, we recommend checking for the error condition explicitly:
// For example instead of@mkdir($dir);// Better useif(@mkdir($dir)===false){thrownew\RuntimeException('The directory '.$dir.' could not be created.');}
If you suppress an error, we recommend checking for the error condition explicitly: