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 Fatal error: Declaration of FOS\RestBundle\Routing\Loader\RestRouteLoader::setResolver() must be compatible with that of Symfony\Component\Config\Loader\LoaderInterface::setResolver() in [...]/symfony/vendor/bundles/FOS/RestBundle/Routing/Loader/RestRouteLoader.php on line 24 |
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
Doctrine\ORM\Mapping\MappingException: Class Tueddy\TueddyBundle\Document\TimelineEvent is not a valid entity or mapped super class. | |
/Users/raulfraile/Sites/tueddy/trunk/app/symfony/vendor/doctrine/lib/Doctrine/ORM/Mapping/MappingException.php:147 | |
/Users/raulfraile/Sites/tueddy/trunk/app/symfony/vendor/doctrine/lib/Doctrine/ORM/Mapping/Driver/DriverChain.php:80 | |
/Users/raulfraile/Sites/tueddy/trunk/app/symfony/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:293 | |
/Users/raulfraile/Sites/tueddy/trunk/app/symfony/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:178 | |
/Users/raulfraile/Sites/tueddy/trunk/app/symfony/vendor/doctrine/lib/Doctrine/ORM/EntityManager.php:269 | |
/Users/raulfraile/Sites/tueddy/trunk/app/symfony/vendor/doctrine/lib/Doctrine/ORM/UnitOfWork.php:1490 | |
/Users/raulfraile/Sites/tueddy/trunk/app/symfony/vendor/doctrine/lib/Doctrine/ORM/UnitOfWork.php:1468 | |
/Users/raulfraile/Sites/tueddy/trunk/app/symfony/vendor/doctrine/lib/Doctrine/ORM/EntityManager.php:496 |
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
$loader = new Twig_Loader_Filesystem('.'); // folder where templates are located |
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
$ composer show --platform | |
platform: | |
ext-apc [3.1.9] : The apc PHP extension | |
ext-bcmath [0] : The bcmath PHP extension | |
ext-bz2 [0] : The bz2 PHP extension | |
ext-ctype [0] : The ctype PHP extension | |
ext-curl [0] : The curl PHP extension | |
ext-date [5.3.15] : The date PHP extension | |
ext-dom [20031129] : The dom PHP extension | |
ext-ereg [0] : The ereg PHP extension |
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
raul_fraile_ladybug: | |
general: | |
expanded: true |
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
En estos momentos no podemos atenderle. Por favor vuelva a intentarlo pasado unos minutos. Disculpe las molestias. |
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 Psr\Log; | |
/** | |
* Describes a logger instance | |
*/ | |
interface LoggerInterface | |
{ | |
/** |
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 | |
public function load(ObjectManager $manager) | |
{ | |
$jokes = array( | |
'There’s no place like 127.0.0.1', | |
'If at first you don’t succeed; call it version 1.0', | |
'You know it’s love when you memorize her IP number to skip DNS overhead', | |
'Beware of programmers that carry screwdrivers', | |
'What color do you want that database?' |
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 | |
// validate input (don't allow jokes about java) | |
$content = $request->request->get('content'); | |
if (stripos($content, 'java') !== false) { | |
throw new BadRequestHttpException('Java jokes are not allowed'); | |
} |
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 | |
use Symfony\Component\Validator\Constraint; | |
use Symfony\Component\Validator\ConstraintValidator; | |
class ContainsJavaValidator extends ConstraintValidator | |
{ | |
public function validate($value, Constraint $constraint) | |
{ | |
if (stripos($value, 'java') !== false) { |