Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doctrine\Common\Persistence\ObjectManager is deprecated #331

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/Doctrine/Common/DataFixtures/FixtureInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

namespace Doctrine\Common\DataFixtures;

use Doctrine\Common\Persistence\ObjectManager;
use Doctrine\Common\Persistence\ObjectManager as DeprecatedManager;
use Doctrine\Persistence\ObjectManager;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are not 2 different classes, one is actually an alias to the other one, so there is no issue with using the new name in the signature because it's the same thing


/**
* Interface contract for fixture classes to implement.
Expand All @@ -13,6 +14,7 @@ interface FixtureInterface
{
/**
* Load data fixtures with the passed EntityManager
* @param ObjectManager|DeprecatedManager $manager
*/
public function load(ObjectManager $manager);
public function load($manager);
}