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
| /** | |
| * Starts the session storage. | |
| * | |
| * @api | |
| */ | |
| public function start() | |
| { | |
| if (true === $this->started) { | |
| return; | |
| } |
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
| <h3>Categories</h3> | |
| <ul> | |
| {% for rankLevel1, field in form.datas.Category.choices %} | |
| {% include 'ThemesBundle:Search:_group_tree.html.twig' with {'form': form, 'widget': 'Category', 'rankLevel1': rankLevel1, 'level': 1, 'field': field } %} | |
| {% endfor %} | |
| </ul> |
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
| <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 { |
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
| 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 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 | |
| // ... | |
| $awardCount = count($this->finder); | |
| foreach ($this->finder as $file /** @var $file \SplFileInfo */) { | |
| try { |
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
| /** | |
| * 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 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; | |
| class AppController extends Controller | |
| { | |
| /** | |
| * @Route("/my-route", name="blog_test") |
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
| 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 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
| # @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 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
| easy_admin: | |
| design: | |
| menu: | |
| label: System | |
| icon: 'server' | |
| children: | |
| - { label: 'PHP Info', route: easyadmin_phpinfo, icon: 'info' } |