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
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
<?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
Feature: Custom text printing | |
In order to sell more customized products | |
As a Customer | |
I want to customize my product | |
Background: | |
Given there is default currency configured | |
Scenario: Entering custom text when adding product to the cart | |
Given there is a product "Nike T-Shirt", which cost is 10 EUR |
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
filter: | |
paths: | |
- 'src/*' | |
excluded_paths: | |
- 'src/Sylius/Bundle/*/spec/*' | |
- 'src/Sylius/Bundle/*/Tests/*' | |
- 'src/Sylius/Component/*/spec/*' | |
- 'src/Sylius/Component/*/Tests/*' | |
- 'app/*' | |
tools: |
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; |
NewerOlder