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
{# templates/bundles/TwigBundle/Exception/error429.html.twig #} | |
{% extends 'layout.html.twig' %} | |
{% block meta_title %}Error {{ status_code }}, too many login attempts{% endblock meta_title %} | |
{% block body %} | |
<h1>Security warning</h1> | |
<h2>Too many login attempts</h2> |
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 | |
// src/AppBundle/Controller/Admin/AdminController.php | |
namespace AppBundle\Controller\Admin; | |
use EasyCorp\Bundle\EasyAdminBundle\Controller\AdminController as BaseAdminController; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpFoundation\Response; |
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
easy_admin: | |
design: | |
menu: | |
label: System | |
icon: 'server' | |
children: | |
- { label: 'PHP Info', route: easyadmin_phpinfo, icon: 'info' } |
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
# @see https://github.com/snc/SncRedisBundle/blob/master/Resources/doc/index.md | |
parameters: | |
app_version: 6.0.0 | |
# Redis | |
snc_redis.dsn: redis://%redis_node_1%:%redis_port%/%redis_database% | |
# https://github.com/snc/SncRedisBundle/blob/master/Resources/doc/index.md | |
snc_redis: | |
clients: |
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
AppController.php on line 68: | |
array:33 [▼ | |
"get('foo')" => "bar" | |
"hasPreviousSession" => true | |
"hasSession" => true | |
"getClientIps" => array:1 [▼ | |
0 => "127.0.0.1" | |
] | |
"getClientIp" => "127.0.0.1" | |
"getScriptName" => "/app_dev.php" |
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 AppBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
class AppController extends Controller | |
{ | |
/** | |
* @Route("/my-route", name="blog_test") |
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
/** | |
* Load all ressources needed for the current website. | |
* | |
* @param LoaderInterface $loader | |
*/ | |
public function registerContainerConfiguration(LoaderInterface $loader) | |
{ | |
// Load generic configuration | |
$loader->load(__DIR__.'/config/config.yml'); |
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 | |
// ... | |
$awardCount = count($this->finder); | |
foreach ($this->finder as $file /** @var $file \SplFileInfo */) { | |
try { |
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
cd ~ | |
sudo apt-get update | |
sudo apt-get install openjdk-7-jre-headless -y | |
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below | |
# NEW WAY / EASY WAY | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.2.1.deb | |
sudo dpkg -i elasticsearch-1.2.1.deb |
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
<li> | |
{% if field.is_selected is defined %} | |
<input type="checkbox" value="1"{{ html_checked(selected) }} name="{{ name }}" id="{{ id }}" class="{{ class }}"> | |
<label for="{{ id }}">{{ field.element }}</label> | |
{% endif %} | |
{% if field.choices is defined %} | |
<ul> | |
{% for rankLevel2, subField in field.choices %} | |
{% include 'ThemesBundle:Search:_group_tree.html.twig' with { |
NewerOlder