Fix namespaces

This commit is contained in:
Paweł Jędrzejewski 2012-10-28 18:52:52 +01:00
parent 86c72a4453
commit 92f1beeda5
5 changed files with 10 additions and 10 deletions

View file

@ -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;

View file

@ -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.

View file

@ -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;

View file

@ -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.

View file

@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
namespace Sylius\Component\Resource;
namespace Sylius\Bundle\ResourceBundle\Model;
/**
* Resource interface.