Skip to content

Instantly share code, notes, and snippets.

<?php
namespace Walmen\AnnonymousBundle\Annotations\Driver;
use Doctrine\Common\Annotations\Reader;
use Symfony\Component\Security\Core\SecurityContext;
use Symfony\Component\HttpKernel\Event\FilterControllerEvent;
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Bundle\FrameworkBundle\Routing\Router;
@dwaligora
dwaligora / gist:5355864
Created April 10, 2013 15:52
doctrine filter so ***** simple test with sf2.1
<?php
namespace Acme\Bundle\Doctrine\Filter;
use Doctrine\ORM\Mapping\ClassMetaData,
Doctrine\ORM\Query\Filter\SQLFilter,
Doctrine\ORM\EntityManager,
Doctrine\DBAL\Types\Type as DBALType;
/**
<?php
namespace Acme\Bundle\TranslationBundle\Tests\PHPUnit\Form\Type;
use Acme\Bundle\TranslationBundle\Form\Type\LocaleType;
/**
* Description of LocaleTypeTest
*
* @author Daniel Waligóra <danielwaligora@gmail.com>
<?php
namespace Clearcode\TransparenBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\HttpFoundation\Request;
<?php
namespace Slate\Media\CommonsBundle\Manager;
use Symfony\Bundle\FrameworkBundle\Routing\Router;
use Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher;
use Webility\Bundle\remoteStorageBundle\Services\Storage;
use Webility\Bundle\WebilityBundle\Entity\Repository\File;
use Webility\Bundle\WebilityBundle\Entity\Superclasses\Entity;
public function getCourses(Application $app, User $user, SchoolSemester $semester, $startDate, $endDate, $include)
{
$startDate = Carbon::createFromTimestamp($startDate);
$startDate = $startDate->startOfDay();
$endDate = Carbon::createFromTimestamp($endDate);
$endDate = $endDate->endOfDay();
$includeHomeworks = in_array('homeworks', $include);
$startOfSemesterProjection = Carbon::createFromTimestamp(
<div class="week-timetable" style="overflow-y: scroll">
<div class="grid-right">
<div class="day-row">
<div class="day-col" data-ng-repeat="day in $parent.timetable.days">
<h1 data-ng-click="go('/calendar/day/' + day.date, 'fade')">{{ day.name }}</h1>
</div>
</div>
<div class="time-row" data-ng-repeat="obj in $parent.timetable.slots">
<div data-ng-repeat="slot in obj">
<div data-ng-if="!slot.is_break">
<?php
namespace Nexus\Media\FrontendBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Symfony\Component\HttpFoundation\JsonResponse;
/**
<?php
namespace Nexus\Media\FrontendBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\JsonResponse;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);