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 AppBundle\Util; | |
use Gedmo\Sluggable\Util as Sluggable; | |
use Swift_Events_SendEvent; | |
use Swift_Events_SendListener; | |
use Symfony\Component\Filesystem\Exception\IOExceptionInterface; | |
use Symfony\Component\Filesystem\Filesystem; |
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 AppBundle\Twig; | |
use Symfony\Component\Routing\RouterInterface; | |
use Symfony\Component\Templating\EngineInterface; | |
use Symfony\Component\Translation\TranslatorInterface; | |
class PaginationExtension extends \Twig_Extension | |
{ |
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 AppBundle\EventListener; | |
use Symfony\Component\Console\Event\ConsoleErrorEvent; | |
use Psr\Log\LoggerInterface; | |
class ConsoleExceptionListener | |
{ | |
private $logger; |
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 MyParsedown extends \Parsedown | |
{ | |
function __construct() | |
{ | |
$this->InlineTypes['@'][]= 'UserMention'; | |
$this->inlineMarkerList .= '@'; | |
} |
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 AppBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
use Gedmo\Mapping\Annotation as Gedmo; | |
use Symfony\Component\Validator\Constraints as Assert; | |
/** | |
* Cron |
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
build: | |
nodes: | |
analysis: | |
project_setup: | |
override: | |
- 'true' | |
tests: | |
override: | |
- ./vendor/bin/simple-phpunit | |
- sensiolabs-security-checker-run |
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 App\Util; | |
class ParseLinks | |
{ | |
private $rootLink; | |
private $links = []; | |
private $deep = 0; |
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 AppBundle\Util; | |
class App_Swift_Transport_FailoverTransport extends \Swift_Transport_FailoverTransport | |
{ | |
/** | |
* @param \Swift_Mailer[] $mailers | |
*/ | |
public function __construct(array $mailers) |
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 AppBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\Routing\Annotation\Route; | |
class DefaultController extends Controller | |
{ |
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
import { addDisabled, removeDisabled } from '../../util/disable'; | |
/** | |
* Available options: | |
* | |
* options = { | |
* settings = { | |
* type: 'POST' || null, // Type of request or [data-ajax-method] - default GET | |
* url: '/script' || null, // Url for the request or form[action] or a[href] - default current url | |
* data: data || [] // Additional data to be send or serialized form - default [] |