vendor/doctrine/mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentRepository.php line 12

Open in your IDE?
  1. <?php
  2. namespace Doctrine\ODM\MongoDB;
  3. use Doctrine\ODM\MongoDB\Repository\DocumentRepository as BaseDocumentRepository;
  4. use const E_USER_DEPRECATED;
  5. use function class_exists;
  6. use function sprintf;
  7. use function trigger_error;
  8. if (! class_exists(BaseDocumentRepository::class, false)) {
  9.     @trigger_error(sprintf('The "%s" class is deprecated and will be removed in doctrine/mongodb-odm 2.0. Use "%s" instead.'DocumentRepository::class, BaseDocumentRepository::class), E_USER_DEPRECATED);
  10. }
  11. class_alias(BaseDocumentRepository::class, DocumentRepository::class);
  12. if (false) {
  13.     /**
  14.      * This stub has two purposes:
  15.      * - it provides a class for IDEs so they still provide autocompletion for
  16.      *   this class even when they don't support class_alias
  17.      * - it gets composer to think there's a class in here when using the
  18.      *   --classmap-authoritative autoloader optimization.
  19.      *
  20.      * @deprecated in favor of \Doctrine\ODM\MongoDB\Repository\DocumentRepository
  21.      */
  22.     class DocumentRepository extends BaseDocumentRepository
  23.     {
  24.     }
  25. }