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
| fos_js_routing: | |
| routes_to_expose: | |
| - "^api_.*" # expose all routes with a name starting with api_ |
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 | |
| class Dto | |
| { | |
| public $foo; | |
| public $bar; | |
| public $baz; | |
| } | |
| class Obj |
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
| <VirtualHost *:80> | |
| ServerAdmin webmaster@localhost | |
| DocumentRoot /var/www | |
| <Directory /> | |
| Options FollowSymLinks | |
| AllowOverride All | |
| </Directory> | |
| <Directory /var/www/> | |
| Options Indexes FollowSymLinks MultiViews |
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 Doctrine Extensions Taggable package. | |
| * (c) 2011 Fabien Pennequin <[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
| <?php | |
| namespace Geekhub\DreamBundle\Controller; | |
| use Geekhub\DreamBundle\Entity\Dream; | |
| use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
| use Symfony\Component\HttpFoundation\Request; | |
| use Application\Sonata\MediaBundle\Entity\Media; | |
| use Sonata\MediaBundle\Entity\MediaManager; |
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 | |
| private function getAllTranslationsFiles($container) | |
| { | |
| // Discover translation directories | |
| $dirs = array(); | |
| $overridePath = $container->getParameter('kernel.root_dir').'/Resources/%s/translations'; | |
| foreach ($container->getParameter('kernel.bundles') as $bundle => $class) { | |
| $reflection = new \ReflectionClass($class); |
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 | |
| function show_run($text, $command, $canFail = false) | |
| { | |
| echo "\n* $text\n$command\n"; | |
| passthru($command, $return); | |
| if (0 !== $return && !$canFail) { | |
| echo "\n/!\\ The command returned $return\n"; | |
| exit(1); | |
| } |
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->dm = $this->getContainer()->get('doctrine.odm.mongodb.document_manager'); | |
| $meta = $this->dm->getMetadataFactory()->getAllMetadata(); | |
| $documents = array(); | |
| foreach ($meta as $m) { | |
| $documents[] = $m->getName(); | |
| } |
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 | |
| namespace Kotoblog\Annotation; | |
| use Doctrine\Common\Annotations\Annotation; | |
| /** @Annotation | |
| * @Target("PROPERTY") | |
| */ | |
| final class Mapping |
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 | |
| namespace Kotoblog\Entity; | |
| use Kotoblog\Annotation\Mapping; | |
| class Blogpost | |
| { | |
| /** | |
| * @Mapping(type="integer", default="false") |