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
{ | |
"name": "my/super-project", | |
"type": "project", | |
"license": "MIT", | |
"description": "Lots of PHP Goodnesses here!", | |
"minimum-stability": "stable", | |
"prefer-stable": true, | |
"require": { | |
"php": ">=8.3.7", | |
"ext-bcmath": "*", |
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
name: '[PROJECT NAME]' | |
'on': | |
push: | |
branches: | |
- master | |
- develop | |
- 'releases/**' | |
pull_request: null | |
env: | |
working_directory: ./application |
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 __DIR__.'/vendor/autoload.php'; | |
$loader = new Twig_Loader_Filesystem(__DIR__.'/views'); | |
$twig = new Twig_Environment($loader, array( | |
//'cache' => __DIR__.'/cache', | |
)); | |
return $twig; |
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 Todo\Persistence; | |
class TodoGateway | |
{ | |
private $dbh; | |
private $hostname; | |
private $username; | |
private $password; |
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\TranslationBundle\Translation\Loader; | |
use Symfony\Component\Config\Resource\ResourceInterface; | |
use Symfony\Component\Translation\Loader\LoaderInterface; | |
use Symfony\Component\Translation\MessageCatalogue; | |
use Symfony\Component\Translation\Translator; | |
/** |
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
cd weaver/ | |
git add single.php | |
git commit -m'Ryan is a single man' | |
git add leanna.php | |
git commit -m"Added Leanna to Ryan's life" | |
git mv single.php engaged.php | |
git commit -m'Ryan & Leanna are engaged' | |
git mv engaged.php married.php | |
git commit -m'Congratz!' | |
git push |
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
phpunit --bootstrap tests/bootstrap.php --coverage-html ./coverage tests/Propel/Tests/Generator/Model/ | |
PHP Deprecated: /Users/hugo.hamon/Development/Propel2/vendor/.composer/autoload.php is deprecated, please use vendor/autoload.php or vendor/composer/autoload_* instead | |
See https://groups.google.com/forum/#!msg/composer-dev/fWIs3KocwoA/nU3aLko9LhQJ for details in /Users/hugo.hamon/Development/Propel2/vendor/.composer/autoload.php on line 3 | |
PHP Stack trace: | |
PHP 1. {main}() /opt/local/bin/phpunit:0 | |
PHP 2. PHPUnit_TextUI_Command::main() /opt/local/bin/phpunit:46 | |
PHP 3. PHPUnit_TextUI_Command->run() /opt/local/lib/php/PHPUnit/TextUI/Command.php:130 | |
PHP 4. PHPUnit_TextUI_Command->handleArguments() /opt/local/lib/php/PHPUnit/TextUI/Command.php:139 | |
PHP 5. PHPUnit_TextUI_Command->handleBootstrap() /opt/local/lib/php/PHPUnit/TextUI/Command.php:562 |
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 NewModule; | |
use Zend\EventManager\StaticEventManager; | |
use Zend\EventManager\EventDescription as Event; | |
use Zend\EventManager\StaticEventManager; | |
class Module | |
{ |
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
Reversi.prototype.getNewCell = function (row, col) { | |
var cell = { 'row': 0, 'col': 0 }; | |
if (undefined !== row) { | |
cell.row = parseInt(row); | |
} | |
if (undefined !== col) { | |
cell.col = parseInt(col); |
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
Building fixtures in tests/Fixtures/bookstore OK | |
Building fixtures in tests/Fixtures/bookstore-packaged Execution of target "insert-sql" failed for the following reason: /Users/hugo.hamon/Development/Propel2/tools/generator/build-propel.xml:191:1: You haven't provided an sqldbmap, or the one you specified doesn't exist: /Users/hugo.hamon/Development/Propel2/tests/Fixtures/bookstore-packaged/build/sql/sqldb.map | |
[phing] /Users/hugo.hamon/Development/Propel2/tools/generator/build-propel.xml:191:1: You haven't provided an sqldbmap, or the one you specified doesn't exist: /Users/hugo.hamon/Development/Propel2/tests/Fixtures/bookstore-packaged/build/sql/sqldb.map | |
OK | |
Building fixtures in tests/Fixtures/namespaced OK | |
Building fixtures in tests/Fixtures/reverse/mysql [phing] SQLSTATE[42S02]: Base table or view not found: 1051 Unknown table 'book' | |
OK | |
Building fixtures in tests/Fixtures/schemas [phing] SQLSTATE[42000]: Syntax error or access |
NewerOlder