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 | |
| use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; | |
| use Symfony\Component\DependencyInjection\ContainerBuilder; | |
| use Symfony\Component\DependencyInjection\Reference; | |
| /** | |
| * Class FirewallListenerCompilerPass | |
| * | |
| * @author Berny Cantos <[email protected]> |
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
| [alias] | |
| b = branch | |
| bl = branch-list | |
| bn = rename-branch | |
| br = branch -r | |
| c = checkout | |
| cm = commit -m | |
| cp = cherry-pick | |
| d = diff | |
| df = commits-of-changed-files |
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 Github | |
| { | |
| private $token; | |
| public function __construct($token) | |
| { | |
| $this->token = $token; | |
| } |
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
| sf() { | |
| local DIR | |
| pushd . > /dev/null 2>&1 | |
| while ! git exec test -x app/console; do | |
| if [ $PWD = "/" ]; then | |
| popd > /dev/null 2>&1 | |
| echo "Can't find a suitable Symfony application" 1>&2 | |
| return 1 | |
| fi |
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
| var Stream = (function () { | |
| var undefined, empty, proto; | |
| function extend(dest, source) { | |
| for (var arg = 1; arg < arguments.length; ++arg) { | |
| for (var key in arguments[arg]) { | |
| if (arguments[arg].hasOwnProperty(key)) { | |
| dest[key] = arguments[arg][key]; | |
| } | |
| } |
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
| function setSelectionPlugin() { | |
| var _setSelectionRange, _getCursorPosition, support = (function() { | |
| var input = document.createElement('input'), result; | |
| result = { | |
| setSelectionRange: ('setSelectionRange' in input) || ('selectionStart' in input), | |
| createTextRange: ('createTextRange' in input) || ('selection' in document) | |
| }; | |
| input = null; | |
| return result; | |
| }()); |
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
| function debounce(callback, timeout) { | |
| var timer; | |
| return function() { | |
| timer && clearTimeout(timer); | |
| timer = setTimeout(function(args) { | |
| timer = null; | |
| callback.apply(this, args); | |
| }.bind(this, arguments), timeout||100); | |
| } | |
| } |
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 CombinatorialIterator implements \Iterator | |
| { | |
| protected $valid; | |
| protected $iteration; | |
| protected $data; | |
| public function __construct(array $data = array()) | |
| { |
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 | |
| use Symfony\Component\EventDispatcher\EventDispatcherInterface; | |
| use Symfony\Component\HttpKernel\KernelEvents; | |
| use Symfony\Component\EventDispatcher\Event; | |
| trait AsyncDispatcherTrait | |
| { | |
| /** @var EventDispatcherInterface */ | |
| protected $dispatcher; |
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 | |
| use Symfony\Component\Config\Definition\Builder\TreeBuilder; | |
| use Symfony\Component\Config\Definition\ConfigurationInterface; | |
| use Symfony\Component\Config\Definition\Processor; | |
| class ConfigurationTest extends \PHPUnit_Framework_TestCase | |
| { | |
| /** | |
| * @dataProvider provideDefaultValues |