* For the full copyright and license information, please view the LICENSE
11
* file that was distributed with this source code.
12
*/
13
14
namespace Happyr\DoctrineSpecification;
15
16
use Happyr\DoctrineSpecification\Repository\RepositoryFactory as BaseRepositoryFactory;
17
18
@trigger_error('The '.__NAMESPACE__.'\RepositoryFactory class is deprecated since version 1.1 and will be removed in 2.0, use \Happyr\DoctrineSpecification\Repository\RepositoryFactory instead.', 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.');}
Loading history...
19
20
/**
21
* Factory class for creating EntitySpecificationRepository instances.
22
*
23
* Provides an implementation of RepositoryFactory so that the
24
* default repository type in Doctrine can easily be replaced.
25
*
26
* @description This class is deprecated since version 1.1 and will be removed in 2.0, use \Happyr\DoctrineSpecification\Repository\RepositoryFactory instead.
27
*/
28
class RepositoryFactory extends BaseRepositoryFactory
If you suppress an error, we recommend checking for the error condition explicitly: