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
| http { | |
| map $http_user_agent $limit_bots { | |
| default ''; | |
| ~*(google|bing|yandex|msnbot) $binary_remote_addr; | |
| } | |
| limit_req_zone $limit_bots zone=bots:10m rate=1r/m; | |
| server { |
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
| services: | |
| session.metadata_bag: | |
| class: Symfony\Component\HttpFoundation\Session\Storage\MetadataBag | |
| arguments: | |
| - '_sf2_meta' | |
| - '0' | |
| public: false | |
| session.file_handler: | |
| class: Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler | |
| arguments: |
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
| #!/bin/sh | |
| echo "cache..." | |
| php app/console cache:clear --env=dev | |
| php app/console cache:clear --env=prod | |
| echo "doctrine..." | |
| php app/console doctrine:cache:clear-metadata |
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 | |
| $filter = 'foo'; | |
| $qb = $this->getEntityManager()->createQueryBuilder(); | |
| $qb->select('u'); | |
| $qb->from($this->getClassName() , 'u'); | |
| $qb->add('where', $qb->expr()->orx( | |
| $qb->expr()->like('u.email', $qb->expr()->literal('%'.$filter.'%')), |
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
| <script type="text/javascript" src="{{ asset('/bundles/fosjsrouting/js/router.js') }}"></script> | |
| {% if _env == 'prod' %} | |
| <script type="text/javascript" src="{{ asset('/js/fos_js_routes.js') }}"></script> | |
| {% else %} | |
| <script type="text/javascript" src="{{ path('fos_js_routing_js', {"callback": "fos.Router.setData"}) }}"></script> | |
| {% endif %} |
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
| server { | |
| listen 80; | |
| server_name mediawiki.com; | |
| root /var/www/mediawiki.com; | |
| client_max_body_size 5m; | |
| client_body_timeout 60; |
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
| #!/bin/sh | |
| sudo ln -s /usr/local/bin/node /usr/bin/node | |
| sudo ln -s /usr/local/lib/node /usr/lib/node | |
| sudo ln -s /usr/local/bin/npm /usr/bin/npm | |
| sudo ln -s /usr/local/bin/node-waf /usr/bin/node-waf |
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
| parameters: | |
| doctrine_cache.class: Doctrine\Common\Cache\ArrayCache | |
| doctrine_metadata.class: Doctrine\Common\Annotations\Reader | |
| doctrine_configuration.class: Doctrine\ORM\Configuration | |
| doctrine_entity_manager.class: Doctrine\ORM\EntityManagerInterface | |
| doctrine_entity_manager_factory.class: Doctrine\ORM\EntityManager | |
| doctrine.proxy_dir.path: '/path/to/proxy' | |
| doctrine.proxy.namespace: 'Project\Proxies' |
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
| parameters: | |
| routing.file: 'routing_%core.name%.yml' | |
| routing.cache: | |
| debug: %core.debug% | |
| cache_dir: '%core.cache_path%/routing/' | |
| generator_cache_class: '%core.name%UrlGenerator%core.env%' | |
| matcher_cache_class: '%core.name%UrlMatcher%core.env%' | |
| services: | |
| routing.file_locator: |