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 | |
require_once('autoload.php'); | |
$cctrl = new Cloudcontrol\Api(); | |
$user = new Cloudcontrol\Authentication\User('[email protected]', 'not-to-be-posted'); | |
$app = new Cloudcontrol\Entity\Application('ormigo'); | |
$deployment = new Cloudcontrol\Entity\Deployment($app, 'stage'); |
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 | |
require_once('autoload.php.dist'); | |
$api = new Cloudcontrol\Api(); | |
$api | |
->setCredentials('[email protected]', 'yoursecretpasswd') | |
->setApplication('application') | |
->setDeployment('dep3as5l3') | |
; |
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
ormigo git:feature/cctrl-bundle ✗ ≠ ls -l src ~/Ormigo/repository/ormigo | |
total 0 | |
drwxr-xr-x 3 havvg staff 102 Dec 12 14:33 FOS | |
drwxr-xr-x 5 havvg staff 170 Feb 18 01:05 Ormigo | |
ormigo git:feature/cctrl-bundle ✗ ≠ ls -l src/Ormigo ~/Ormigo/repository/ormigo | |
total 0 | |
drwxr-xr-x 11 havvg staff 374 Feb 13 14:39 Bundle | |
drwxr-xr-x 3 havvg staff 102 Nov 18 13:49 Monolog | |
drwxr-xr-x 3 havvg staff 102 Feb 18 01:56 Tests | |
ormigo git:feature/cctrl-bundle ✗ ≠ ls -l src/Ormigo/Bundle ~/Ormigo/repository/ormigo |
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
imports: | |
- { resource: parameters.yml } | |
- { resource: propel.yml } | |
- { resource: services.yml } | |
- { resource: security.yml } | |
# more stuff ... |
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 Havvg\Bundle\CloudcontrolBundle\Tests; | |
abstract class AbstractTest extends \PHPUnit_Framework_TestCase | |
{ | |
// more stuff? | |
/** | |
* Return a mock object for the DI ContainerInterface. |
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 CriteriaTest extends BookstoreTestBase | |
{ | |
public function testMultipleHaving() | |
{ | |
$c = new Criteria(); | |
$c->addSelectColumn(BookPeer::TITLE); | |
$c->addAsColumn('isb_n', BookPeer::ISBN); | |
$crit = $c->getNewCriterion('isb_n', '1234567890123'); |
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
[alias] | |
wu = branch -a --no-merged |
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 Ormigo\Bundle\UserBundle\Controller; | |
use Symfony\Component\HttpFoundation\RedirectResponse; | |
use FOS\UserBundle\Controller\RegistrationController as Controller; | |
class RegistrationController extends Controller | |
{ | |
// .. some more actions |
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
{% extends '::base.html.twig' %} | |
{% from 'MopaBootstrapBundle::icons.html.twig' import icon %} | |
{% macro widget_prototype(widget, remove_text) %} | |
{% from 'MopaBootstrapBundle::icons.html.twig' import icon %} | |
{% if widget.get('prototype') %} | |
{% set form = widget.get('prototype') %} | |
{% set name = widget.get('prototype').get('name') %} |
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
[alias] | |
up = !git merge --ff-only upstream/`git branch --no-color | grep -e '^\\*' | cut -d\" \" -f2` |