CI is setup to use vagrant boxes for trusty and xenial to match production setup.
The boxes can be found here:
Verifying that "peterrehm.id" is my Blockstack ID. https://onename.com/peterrehm |
CI is setup to use vagrant boxes for trusty and xenial to match production setup.
The boxes can be found here:
#!/usr/bin/env bash | |
export DEBIAN_FRONTEND=noninteractive | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
# Get "add-apt-repository" Command | |
sudo apt-get install -y software-properties-common |
class Enginge { | |
/** | |
* @ORM\Column(type="float") | |
* @Assert\NotBlank() | |
* @Assert\Numeric(maxScale = 2) | |
*/ | |
private $power; | |
} |
class MoneyType extends AbstractType implements DataMapperInterface | |
{ | |
public function buildForm(FormBuilder $builder, array $options) | |
{ | |
$builder | |
->add('amount', 'integer') | |
->add('currency', 'string') | |
->setDataMapper($this) | |
; | |
} |
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="${projectName}" basedir="." default="build:main"> | |
<!-- Properties --> | |
<property name="dir.app" value="${project.basedir}/app" /> | |
<property name="dir.src" value="${project.basedir}/src" /> | |
<property name="dir.build" value="${project.basedir}/app/build" /> | |
<property name="dir.docs" value="${dir.build}/docs" /> | |
<property name="dir.docs.phpdoc" value="${dir.docs}/phpdoc" /> | |
<property name="dir.docs.docblox" value="${dir.docs}/docblox" /> | |
<property name="dir.reports" value="${dir.build}/logs" /> |
<?php | |
namespace Incenteev\WebBundle\Validator; | |
use Symfony\Component\Validator\Constraint; | |
/** | |
* @Annotation | |
* @Target({"CLASS", "ANNOTATION"}) | |
*/ |
# Laravel | |
php -dmemory_limit=1G /usr/local/bin/composer install | |
php -dmemory_limit=1G /usr/local/bin/composer update | |
php -dmemory_limit=1G /usr/local/bin/composer require SOMETHING | |
php artisan package:install lucadegasperi/oauth2-server-laravel | |
# Git - Remove a folder without deleting locally | |
git rm -r --cached folder_name | |
# heroku |
<?php | |
namespace Incenteev\Bundle\Form\Extension; | |
use Symfony\Component\Form\AbstractTypeExtension; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\OptionsResolver\OptionsResolverInterface; | |
/** | |
* @author Adrien Brault <[email protected]> |