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
lakion_sylius_elastic_search: | |
filter_sets: | |
t_shirts: | |
filters: | |
color: | |
type: option | |
options: | |
code: tshirt_color | |
size: | |
type: option |
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 | |
class ResourceAutocompleteType extends AbstractType | |
{ | |
// ... | |
private $resourceName; | |
public function __construct($resourceName) | |
{ |
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_shop_add_to_cart: | |
path: /cart/ | |
methods: [POST] | |
defaults: | |
_controller: sylius.controller.cart_item:createAction | |
_sylius: | |
factory: | |
method: createForCart | |
arguments: | |
- 'expr:service('sylius.context.cart').getCart()' |
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 AppBundle\Tests\Controller; | |
use Lakion\ApiTestCase\JsonApiTestCase; | |
use Symfony\Component\HttpFoundation\Response; | |
class ProductApiTest extends JsonApiTestCase | |
{ | |
/** |
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
$ curl -sS https://getcomposer.org/installer | php | |
$ php composer.phar create-project sylius/sylius -s dev | |
$ cd sylius | |
$ vi sylius/config/container/parameters.yml # And put your values! | |
$ php sylius/console doctrine:database:create | |
$ php sylius/console doctrine:schema:create | |
$ php sylius/console doctrine:fixtures:load # If you want to load sample data. |
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
tools: | |
php_code_sniffer: | |
filter: | |
excluded_paths: [spec/*] | |
php_cs_fixer: | |
filter: | |
excluded_paths: [spec/*] | |
php_mess_detector: | |
filter: | |
excluded_paths: [spec/*] |
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 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; |
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 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 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'); | |
} |
NewerOlder