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
public function testCanUpdateProductAlreadyInCart() | |
{ | |
$client = static::createClient(); | |
$client->request('POST', '/api/carts'); | |
$client->request('POST', '/api/products', [ | |
'name' => 'Foo', | |
'unit_price' => '500' | |
]); | |
$client->request('POST', '/api/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
doctrine: | |
dbal: | |
driver: pdo_sqlite | |
dbname: test_db | |
user: test | |
path: %kernel.root_dir%/../var/cache/sqlite.db.cache | |
memory: true | |
charset: utf8 |
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 CloudPOS\Bundle\StoreBundle\Entity; | |
use Doctrine\Common\Collections\ArrayCollection; | |
use Doctrine\ORM\Mapping as ORM; | |
use Symfony\Component\Validator\Constraints as Assert; | |
/** | |
* Cart |
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
function getPermissions(){ | |
var permissions = $.Deferred(); | |
FB.api( | |
"/{{ app.user.facebookID }}/permissions", | |
{ | |
access_token: '{{ app.user.facebookAccessToken }}' | |
}, | |
function (response) { |
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
axios.interceptors.response.use(undefined, function (error) { | |
return new Promise(function(resolve, reject){ | |
if(error.response.status == '401' && error.config){ | |
axios.post(`${ROOT_URL}/app_dev.php/oauth/v2/token`, { | |
client_id: '3_68v87tczl8ws8088sgo80ckwcc4okow044o4o00084gkckogw8', | |
client_secret: '1fl4iu0t3uw0gco4socogocsswgkg8gcgs48oggcckw44kkks8', | |
grant_type: 'refresh_token', | |
refresh_token: localStorage.getItem('refresh_token') |
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\Form; | |
use AppBundle\Entity\Brewery; | |
use AppBundle\Entity\State; | |
use Doctrine\ORM\EntityManagerInterface; | |
use Symfony\Bridge\Doctrine\Form\Type\EntityType; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\Extension\Core\Type\PercentType; |
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
import React, { Component } from 'react'; | |
import Select from 'react-select'; | |
import { connect } from 'react-redux'; | |
import * as actions from '../actions' | |
import axios from 'axios' | |
class App extends Component { | |
componentWillMount(){ | |
//this.props.getSelectOptions(); |