Skip to content

Instantly share code, notes, and snippets.

<?php
class AcmeController implements ContainerAwareInterface
{
use ContainerAwareTrait;
use RedirectTrait;
public function indexAction()
{
return $this->redirect('some_route', [
{
// Settings
"passfail" : false, // Stop on first error.
"maxerr" : 100, // Maximum error before stopping.
// Predefined globals whom JSHint will ignore.
"browser" : false, // Standard browser globals e.g. `window`, `document`.
"node" : true,