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
<ul class="list-unstyled container js-notifications"> | |
{% if app.session and app.session.flashbag %} | |
{% for label, flashes in app.session.flashbag.all %} | |
{% for flash in flashes %} | |
<li class="alert alert-{{ label }} alert-dismissable"> | |
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> | |
{{ flash }} | |
</li> | |
{% endfor %} | |
{% endfor %} |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<!-- Other head stuff here --> | |
<link rel="alternate" type="application/atom+xml" title="News Feed" href="{{ site.url }}/site/feed.xml" /> | |
</head> | |
<body> | |
<!-- Content --> | |
</body> | |
</html> |
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 Acme\ContentBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Symfony\Component\HttpFoundation\Request; | |
/** | |
* Dynamic router controller | |
* |
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 Sismo\Contrib; | |
use Sismo\Commit; | |
use Sismo\Notifier\Notifier; | |
/** | |
* Notifies build status via toast notifications | |
* |
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
@ECHO OFF | |
setlocal ENABLEDELAYEDEXPANSION | |
SET _START=%CD% | |
ECHO. | |
ECHO ------------------------------------------------------------- | |
ECHO Checking git repos for uncommitted files and unpushed commits | |
ECHO ------------------------------------------------------------- | |
ECHO. |
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
var gulp = require('gulp'); | |
var cp = require('child_process'); | |
var del = require('del'); | |
var concat = require('gulp-concat'); | |
var shell = require('gulp-shell'); | |
var express = require('express'); | |
var livereload = require('gulp-livereload'); | |
var plumber = require('gulp-plumber'); | |
var notify = require('gulp-notify'); | |
var less = require('gulp-less'); |
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
@ECHO OFF | |
:: Enable extensions, the `verify` call is a trick from the setlocal help | |
VERIFY other 2>nul | |
SETLOCAL EnableDelayedExpansion | |
IF ERRORLEVEL 1 ( | |
ECHO Unable to enable extensions | |
GOTO failure | |
) |
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
#set($typeHintText = "$TYPE_HINT ") | |
## First we check against a blacklist of primitive and other common types used in documentation. | |
#set($nonTypeHintableTypes = ["", "string", "int", "mixed", "number", "void", "object", "real", "double", "float", "resource", "null", "bool", "boolean"]) | |
#foreach($nonTypeHintableType in $nonTypeHintableTypes) | |
#if ($nonTypeHintableType == $TYPE_HINT) | |
#set($typeHintText = "") | |
#end | |
#end | |
## Make sure the type hint actually looks like a legal php class name(permitting namespaces too) for future proofing reasons. | |
## This is important because PSR-5 is coming soon, and will allow documentation of types with syntax like SplStack<int> |
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\Config\Loader\LoaderInterface; | |
use Symfony\Component\DependencyInjection\ContainerBuilder; | |
use Symfony\Component\HttpKernel\Kernel; | |
use Symfony\Component\Yaml\Yaml; | |
class AppKernel extends Kernel | |
{ | |
public function registerBundles() |
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 UserBundle\Tests\Service; | |
use Doctrine\Common\DataFixtures\Executor\ORMExecutor; | |
use Doctrine\Common\DataFixtures\Loader as ORMLoader; | |
use Doctrine\Common\DataFixtures\Purger\ORMPurger; | |
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; | |
use Symfony\Component\DependencyInjection\Container; |
OlderNewer