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 DistanceOfTimeInWords | |
{ | |
const MINUTES_IN_YEAR = 525600; | |
const MINUTES_IN_QUARTER_YEAR = 131400; | |
const MINUTES_IN_THREE_QUARTERS_YEAR = 394200; | |
const UP_TO_24_HOURS = 1440; | |
const UP_TO_48_HOURS = 2520; | |
const UP_TO_30_DAYS = 43200; |
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 PW\ApplicationBundle\Command; | |
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand, | |
Symfony\Component\Console\Input\InputArgument, | |
Symfony\Component\Console\Input\InputInterface, | |
Symfony\Component\Console\Input\StringInput, | |
Symfony\Component\Console\Output\OutputInterface; |
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 RE\AssetBundle\Model; | |
use Knp\Bundle\GaufretteBundle\FilesystemMap; | |
use Doctrine\ORM\EntityManager; | |
use Symfony\Component\HttpFoundation\File\UploadedFile; | |
use Symfony\Component\EventDispatcher\EventDispatcher; | |
use Gaufrette\FileStream\Local; |
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
pw.event: | |
class: PW\ApplicationBundle\Model\EventManager | |
arguments: | |
environment: "%kernel.environment%" | |
config: "%pw.events%" | |
dm: "@doctrine.odm.mongodb.document_manager" | |
calls: | |
- [ setMode, [%pw_event.mode%] ] | |
- [ setRedis, ["@snc_redis.default_client"] ] | |
tags: |
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
pw.event: | |
class: PW\ApplicationBundle\Model\EventManager | |
arguments: | |
environment: "%kernel.environment%" | |
config: "%pw.events%" | |
dm: "@doctrine.odm.mongodb.document_manager" | |
calls: | |
- [ setMode, [%pw_event.mode%] ] | |
- [ setRedis, ["@snc_redis.default_client"] ] | |
tags: |