namespace :php5 do
desc 'Reload PHP5-FPM'
task :reload do
on release_roles :app do
execute :sudo, "/usr/sbin/service php5-fpm", "reload"
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 | |
// READ: https://mtxserv.com/forums/threads/api-game-viewer.295/ | |
// Example usage of API Game Viewer (mtxserv.com) | |
$urlToken = 'https://mtxserv.com/oauth/v2/token?'; | |
$urlViewer = 'https://mtxserv.com/api/v1/viewers/game?'; | |
$query = array( | |
'grant_type' => 'https://mtxserv.com/grants/api_key', | |
'client_id' => '', // A Editer |
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
# conf.d/05-opcache.ini | |
opcache.memory_consumption=1024 | |
opcache.interned_strings_buffer=64 | |
opcache.max_accelerated_files=20000 | |
opcache.revalidate_freq=0 | |
opcache.validate_timestamps=0 | |
opcache.fast_shutdown=1 | |
opcache.enable_cli=1 |
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
rabbitmqctl add_user test test | |
rabbitmqctl set_user_tags test administrator | |
rabbitmqctl set_permissions -p / 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
nelmio_cors: | |
defaults: | |
allow_credentials: false | |
allow_origin: [] | |
allow_headers: [] | |
allow_methods: [] | |
expose_headers: [] | |
max_age: 0 | |
hosts: [] |
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
{% set terms_link %}<a title="{% trans %}Read the General Terms and Conditions{% endtrans %}" href="{{ path('get_general_terms_and_conditions') }}">{% trans %}General Terms and Conditions{% endtrans %}</a>{% endset %} | |
{% set general_terms_and_conditions %}{{ 'I have read and accept the %general_terms_and_conditions%.'|trans({ '%general_terms_and_conditions%': terms_link })|raw }}{% endset %} | |
<div> | |
{{ form_errors(form.acceptGeneralTermsAndConditions) }} | |
{{ form_widget(form.acceptGeneralTermsAndConditions) }} | |
<label for="{{ form.acceptGeneralTermsAndConditions.vars.id }}">{{ general_terms_and_conditions|raw }}</label> | |
</div> |
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
filter: | |
excluded_paths: | |
- 'app/*' | |
- 'tests/*' | |
- 'bin/*' | |
- '*.min.js' | |
- 'web/assets/vendor/*' | |
- 'var/' | |
checks: |
API REST ( http://bit.ly/2mQ6BNB )
Initialiser une API Rest, avec la ressource /api/tweets
.
Les méthodes suivantes seront implémentés :
cget()
: retourne la liste de tous les tweetsget($id)
: retourne un tweet par son IDpost()
: création d'un Tweet
-
Fork Fabiens repository: http://github.com/fabpot/symfony.git
-
Clone your fork and install/update vendors (I use my personal fork for now):
git clone [email protected]:pminnieur/symfony.git symfony
cd symfony && sh install_vendors.sh && sh update_vendors.sh
phpunit
-
Integrate Fabiens repository into your local clone:
OlderNewer