This file contains hidden or 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 hidden or 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 hidden or 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 <[email protected]> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ |
This file contains hidden or 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 hidden or 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 <[email protected]> | |
*/ | |
namespace Acme\TestBundle\Monolog; | |
use Monolog\Logger; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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); |
This file contains hidden or 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 __DIR__.'/../app/bootstrap.php.cache'; | |
require_once __DIR__.'/../app/AppKernel.php'; | |
require_once __DIR__.'/../app/AppCache.php'; | |
use Symfony\Component\HttpFoundation\Request; | |
$request = Request::createFromGlobals(); |
OlderNewer