1 | <?php |
||
31 | /* final */ class DefaultRepositoryFactory extends AbstractRepositoryFactory |
||
32 | { |
||
33 | 1142 | public function __construct() |
|
34 | { |
||
35 | 1142 | if (get_class($this) !== DefaultRepositoryFactory::class) { |
|
36 | @trigger_error( |
||
|
|||
37 | sprintf('The %s class extends %s which will be final in ODM 2.0. You should extend %s instead.', __CLASS__, DefaultRepositoryFactory::class, AbstractRepositoryFactory::class), |
||
38 | E_USER_DEPRECATED |
||
39 | ); |
||
40 | } |
||
41 | 1142 | } |
|
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | 372 | protected function instantiateRepository($repositoryClassName, DocumentManager $documentManager, ClassMetadata $metadata) |
|
50 | } |
||
51 |
If you suppress an error, we recommend checking for the error condition explicitly: