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
$builder->addEventListener( | |
FormEvents::PRE_SUBMIT, | |
function (FormEvent $event) { | |
$data = $event->getData(); | |
if (isset($data['url'])) { | |
$url = (string) $data['url']; | |
if (empty($url)) { | |
$url = isset($data['title']) ? (string) $data['title'] : null; |
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 = 'js'; | |
$outputPath = 'assets/js/cache'; | |
$assets = array( | |
'file1.js', | |
'file2.js', | |
); | |
$filterManager = null; | |
// $filterManager = new \Assetic\FilterManager(); | |
// $filterManager->set('cssrewrite', new \Assetic\Filter\CssRewriteFilter()); |
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 S2\AppBundle\Security\Voter; | |
use FOS\UserBundle\Model\UserInterface; | |
use JMS\DiExtraBundle\Annotation as DI; | |
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; | |
use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface; | |
/** |
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
95.141.32.46 | |
95.211.217.68 | |
91.109.115.41 | |
83.170.113.210 | |
188.138.118.144 | |
174.34.224.167 | |
72.46.140.106 | |
76.72.172.208 | |
184.75.210.226 | |
78.40.124.16 |
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
twig: | |
form: | |
resources: | |
- "Form/form_theme.html.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 defined('SYSPATH') OR die('No direct access allowed.'); | |
abstract class A1 extends A1_Core { | |
/** | |
* @param Bonafide | |
*/ | |
protected $_bonafide; | |
/** |
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 | |
/** | |
* Necessary because $param->getClass() requires the class to be loaded. | |
* We don't want to have to load every class. | |
*/ | |
function getClassName(ReflectionParameter $param) { | |
preg_match('/\[\s\<\w+?>\s([\w]+)/s', $param->__toString(), $matches); | |
return isset($matches[1]) ? $matches[1] : null; | |
} |
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 | |
class Color {} | |
class UnitOfWeight {} | |
interface Vehicle { | |
/** | |
* I'm a docblock! | |
*/ | |
public function setColor(Color $color, $foo = 'foo', $bar = array('bar1', 'bar2'), $bool = false); |
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 S2\MyFancyBundle\Templating; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
class MyHtmlExtension extends \Twig_Extension | |
{ | |
private $aFancyService; |
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 | |
$xml = <<<XML | |
<?xml version="1.0" encoding="utf-8"?> | |
<document> | |
<item> | |
<identifier>4</identifier> | |
<name>Blah</name> | |
</item> | |
<item> | |
<identifier>18</identifier> |
OlderNewer