This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Application\Bundle\AssortmentBundle\Entity; | |
| use Sylius\Bundle\CatalogBundle\Entity\Category as BaseCategory; | |
| class Category extends BaseCategory | |
| { | |
| protected $products; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping | |
| http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> | |
| <entity name="Application\Bundle\AssortmentBundle\Entity\Category" table="sylius_assortment_category"> | |
| <id name="id" column="id" type="integer"> | |
| <generator strategy="AUTO" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Application\Bundle\AssortmentBundle\Entity; | |
| use Sylius\Bundle\CatalogBundle\Model\CategoryInterface; | |
| use Sylius\Bundle\AssortmentBundle\Entity\Product as BaseProduct; | |
| class Product extends BaseProduct | |
| { | |
| protected $category; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping | |
| http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> | |
| <entity name="Application\Bundle\AssortmentBundle\Entity\Product" table="sylius_assortment_product"> | |
| <id name="id" column="id" type="integer"> | |
| <generator strategy="AUTO" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Application\Bundle\AssortmentBundle\Form\Type; | |
| use Sylius\Bundle\AssortmentBundle\Form\Type\ProductFormType as BaseProductFormType; | |
| use Symfony\Component\Form\FormBuilder; | |
| class ProductFormType extends BaseProductFormType | |
| { | |
| public function buildForm(FormBuilder $builder, array $options) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * @BeforeScenario | |
| */ | |
| public function purgeDatabase() | |
| { | |
| $em = $this->getEntityManager(); | |
| $purger = new ORMPurger($em); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if ( | |
| !$this->isOauthExists() | |
| && ('oauth' === $driver | |
| || (isset($fetcherConfig['options']['method']) && 'oauth' === $fetcherConfig['options']['method'])) | |
| ) { | |
| throw new \InvalidArgumentException('You should install and enable InoriTwitterBundle'); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UserBundle_users_list: | |
| pattern: /users/{page}.{_format} | |
| defaults: { _controller: UserBundle:Users:list, page: 1, _format: html } | |
| requirements: | |
| _format: html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Bundle\AppBundle\Resolver; | |
| use Doctrine\Common\Persistence\ObjectRepository; | |
| use Sylius\Bundle\CartBundle\Model\CartItemInterface; | |
| use Sylius\Bundle\CartBundle\Resolver\ItemResolverInterface; | |
| use Sylius\Bundle\CartBundle\Resolver\ItemResolvingException; | |
| use Symfony\Component\HttpFoundation\Request; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Bundle\AppBundle\Resolver; | |
| use App\Bundle\AppBundle\Entity\Domain; | |
| use Doctrine\Common\Persistence\ObjectRepository; | |
| use Sylius\Bundle\CartBundle\Model\CartItemInterface; | |
| use Sylius\Bundle\CartBundle\Resolver\ItemResolverInterface; | |
| use Sylius\Bundle\CartBundle\Resolver\ItemResolvingException; | |
| use Symfony\Component\HttpFoundation\Request; |