mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
Fix namespaces
This commit is contained in:
parent
86c72a4453
commit
92f1beeda5
5 changed files with 10 additions and 10 deletions
|
|
@ -13,14 +13,14 @@ namespace Sylius\Bundle\ResourceBundle\Manager\Doctrine;
|
|||
|
||||
use Doctrine\Common\Persistence\ObjectManager;
|
||||
use Sylius\Bundle\ResourceBundle\Manager\ResourceManager;
|
||||
use Sylius\Bundle\ResourceBundle\ResourceInterface;
|
||||
use Sylius\Bundle\ResourceBundle\Model\ResourceInterface;
|
||||
|
||||
/**
|
||||
* Doctrine resource manager class.
|
||||
*
|
||||
* @author Paweł Jędrzejewski <pjedrzejewski@diweb.pl>
|
||||
*/
|
||||
class DoctrineResourceManager extends ResourceManager implements DoctrineResourceManagerInterface
|
||||
abstract class DoctrineResourceManager extends ResourceManager implements DoctrineResourceManagerInterface
|
||||
{
|
||||
protected $objectManager;
|
||||
protected $objectRepository;
|
||||
|
|
|
|||
|
|
@ -9,9 +9,9 @@
|
|||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Sylius\Component\Resource\Manager\Doctrine;
|
||||
namespace Sylius\Bundle\ResourceBundle\Manager\Doctrine;
|
||||
|
||||
use Sylius\Component\Resource\Manager\ResourceManagerInterface;
|
||||
use Sylius\Bundle\ResourceBundle\Manager\ResourceManagerInterface;
|
||||
|
||||
/**
|
||||
* Doctrine resource manager interface.
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Sylius\Component\Resource\Manager\Doctrine;
|
||||
namespace Sylius\Bundle\ResourceBundle\Manager\Doctrine\ORM;
|
||||
|
||||
use Doctrine\ORM\EntityManager;
|
||||
use Pagerfanta\Adapter\DoctrineORMAdapter;
|
||||
|
|
|
|||
|
|
@ -38,17 +38,17 @@ interface ResourceManagerInterface
|
|||
* Persist.
|
||||
*
|
||||
* @param ResourceInterface $resource
|
||||
* @param Boolean $flush
|
||||
* @param Boolean $commit
|
||||
*/
|
||||
function persist(ResourceInterface $resource, $flush = true);
|
||||
function persist(ResourceInterface $resource, $commit = true);
|
||||
|
||||
/**
|
||||
* Removes resource.
|
||||
*
|
||||
* @param ResourceInterface $resource
|
||||
* @param Boolean $flush
|
||||
* @param Boolean $commit
|
||||
*/
|
||||
function remove(ResourceInterface $resource, $flush = true);
|
||||
function remove(ResourceInterface $resource, $commit = true);
|
||||
|
||||
/**
|
||||
* Finds resource by id.
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Sylius\Component\Resource;
|
||||
namespace Sylius\Bundle\ResourceBundle\Model;
|
||||
|
||||
/**
|
||||
* Resource interface.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue