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 SomeScreenSpec | |
{ | |
function it_should_definitly_allow_to_add_something_via_a_form() | |
{ | |
$this->mink->doSomeStuff()->and()->assertSomeStuff(); | |
} | |
} |
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
### Keybase proof | |
I hereby claim: | |
* I am docteurklein on github. | |
* I am docteurklein (https://keybase.io/docteurklein) on keybase. | |
* I have a public key whose fingerprint is 3D72 A8B7 E58D 01F7 72CD 17D7 962C 67BE E5C3 F3FC | |
To claim this, I am signing this object: |
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
HTTP/1.1 404 Not Found | |
Content-Length: 5 | |
Nope |
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 App extends Bundle implements CompilerPassInterface | |
{ | |
public function build(ContainerBuilder $container) | |
{ | |
parent::build($container); | |
$container->addCompilerPass($this); | |
} | |
public function process(ContainerBuilder $container) | |
{ |
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
SELECT | |
a.*, | |
COUNT(c.comment_id) OVER (PARTITION BY c.article_id, _r.associated_article_id) nb_comments, | |
COUNT(_r.weight) OVER (PARTITION BY _r.associated_article_id, _r.article_id) nb_associated_articles, | |
c.*, | |
r.*, | |
_r.weight | |
FROM article a | |
LEFT JOIN comment c USING (article_id) | |
LEFT JOIN relates_to _r ON a.article_id = _r.article_id |
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
api: | |
build: fig/php | |
ports: | |
- '8000:8000' | |
working_dir: /src | |
volumes: | |
- backend:/src | |
entrypoint: [php, '-dextension=gearman.so', '-ddate.timezone=UTC'] | |
command: '-S 0.0.0.0:8000 -t web' | |
links: |
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
$data = [ | |
'offer' => new OfferForCustomer($ticket->getCustomer(), $ticket->getOffer(), 0, 0, 0), | |
]; | |
$form = $this->createForm('season_ticket', $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
propel.targetPackage = lib.model | |
propel.packageObjectModel = true | |
propel.project = sfShop | |
propel.database = mysql | |
propel.database.driver = mysql | |
propel.database.url = mysql:dbname=###;host=localhost | |
propel.database.user = ### | |
propel.database.password = ### | |
propel.database.encoding = 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
HOW TO : | |
- Déclarer les composants dans modules.yml | |
- Créer une page (form) et y ajouter le widget Form. | |
- Créer une sous-page ( edition) de celle citée juste au dessus et y ajouter le widget Edit. | |
- aller a l'URL : /form/edition?id=1 |
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
git submodule update --recursive \ | |
&& git submodule foreach git checkout master \ | |
&& git submodule foreach git fetch \ |
OlderNewer