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 "aws.elasticbeanstalk"] | |
remote = !.git/AWSDevTools/aws.elasticbeanstalk.push --remote-url | |
push = !.git/AWSDevTools/aws.elasticbeanstalk.push | |
config = !.git/AWSDevTools/aws.elasticbeanstalk.config | |
createapplicationversion = !.git/AWSDevTools/aws.elasticbeanstalk.createapplicationversion | |
[aws "endpoint"] | |
us-east-1 = git.elasticbeanstalk.us-east-1.amazonaws.com | |
ap-northeast-1 = git.elasticbeanstalk.ap-northeast-1.amazonaws.com | |
eu-west-1 = git.elasticbeanstalk.eu-west-1.amazonaws.com | |
us-west-1 = git.elasticbeanstalk.us-west-1.amazonaws.com |
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
Encode : array ( array ( "property_name" => ""), array ( "property_name" => "")); | |
<response> | |
<item key="0"><property_name /></item> | |
<item key="1"><property_name /></item> | |
</response> | |
Encode : array ( array ("property_name" => array ( null, null, null ) ), array ("property_name" => array ( null, null, null ) ) ); | |
<response> | |
<item key="0"> | |
<property_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
#php app/console cache:warmup | |
Warming up the cache | |
[ErrorException] | |
Warning: session_start(): open(/var/lib/php/session/sess_XXX, O_RDWR) failed: No such file or directory (2) in /datas/www/tld.domain/subdomains/foo/httpdocs/vendor/symfony/src/Symfony/Component/HttpFoundation/SessionStorage/NativeSessionStorage.php line 87 | |
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 | |
/* | |
* This file is part of the Symfony package. | |
* | |
* (c) Fabien Potencier <fabien@symfony.com> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ |
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
class AppKernel extends Kernel { | |
public function getLogDir () { | |
if (array_key_exists("logs_dir", $_SERVER)) { | |
return $_SERVER["logs_dir"]; | |
} | |
return parent::getLogDir (); | |
} | |
} |
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 | |
/* | |
* | |
* Thomas Tourlourat <thomas@tourlourat.com> | |
*/ | |
namespace Acme\TestBundle\Monolog; | |
use Monolog\Logger; |
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
$query = $queryBuilder->getQuery(); | |
$paginateQuery = Paginate::getPaginateQuery( | |
$query, $this->getOptions()->getOffset(), $this->getOptions()->getLimit() | |
); | |
return $paginateQuery; |
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
[symfony] | |
git=http://github.com/symfony/symfony.git | |
version=v2.0.10 | |
[twig] | |
git=http://github.com/fabpot/Twig.git | |
version=v1.6.0 | |
[monolog] | |
git=http://github.com/Seldaek/monolog.git |
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 normalize($object, $format = null) | |
{ | |
$reflectionObject = new \ReflectionObject($object); | |
$reflectionProperties = $reflectionObject->getProperties(\ReflectionMethod::IS_PUBLIC); | |
$attributes = array(); | |
foreach ($reflectionProperties as $property) { | |
$attributeName = $property->getName(); | |
$attributeValue = $property->getValue ($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
$test = array(); | |
$test["foo"] = "bar"; | |
$tests = array(); | |
$tests[] = $test; | |
echo "<pre>"; | |
var_dump($test === $tests[0]); //true | |
var_dump($tests); |
OlderNewer