This file contains 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 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 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 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 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 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 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 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 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
sylius_catalog: | |
driver: ORM | |
catalogs: | |
assortment: | |
mode: S # 'S' mode matches many products to one category, 'M' many products to many categories. | |
property: "products" # It is 'items' by default. Name of the category items property, used in mapping and templates. | |
classes: | |
model: Application\Bundle\AssortmentBundle\Entity\Category # Category entity. | |
templates: # Theese are optional as there are default templates. | |
backend: |
This file contains 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 Sylius\Bundle\ThemingBundle\Packager; | |
use Symfony\Component\Config\Definition\Processor; | |
use Symfony\Component\Yaml\Yaml; | |
// ... | |
$processor = new Processor(); |