Open port 443 on container, with a docker-compose file just add :
ports:
- 443:443
Add virtualhost config :
Listen 443 https
Open port 443 on container, with a docker-compose file just add :
ports:
- 443:443
Add virtualhost config :
Listen 443 https
First of all, ensure you don't have any deprecated!
The Symfony documentation explains it well, but let's sum up:
$ composer require --dev symfony/phpunit-bridge)deprecation error handledThe API we are creating in this gist will follow these rules :
password Grant Type only (no need for Authorization pages and such).v1.api.example.com)The API will be written in PHP with the Symfony 3 framework. The following SF2 bundles are used :
| <?php | |
| if(php_sapi_name() != 'cli') | |
| { | |
| die('only via cli'); | |
| } | |
| require 'app/Mage.php'; | |
| umask(0); |
| <?php # -*- coding: utf-8 -*- | |
| // function remove_accents() | |
| /** | |
| * Unaccent the input string string. An example string like `ÀØėÿᾜὨζὅБю` | |
| * will be translated to `AOeyIOzoBY`. More complete than : | |
| * strtr( (string)$str, | |
| * "ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ", | |
| * "aaaaaaaaaaaaooooooooooooeeeeeeeecciiiiiiiiuuuuuuuuynn" ); | |
| * |