Open port 443 on container, with a docker-compose file just add :
ports:
- 443:443
Add virtualhost config :
Listen 443 https
| <?php | |
| namespace App\Doctrine\Entity; | |
| use ApiPlatform\Core\Action\NotFoundAction; | |
| use ApiPlatform\Core\Action\PlaceholderAction; | |
| use ApiPlatform\Core\Annotation\ApiProperty; | |
| use ApiPlatform\Core\Annotation\ApiResource; | |
| use App\Coupon\Model\OrderSkuInterface; | |
| use App\Doctrine\Validator\Constraints\CartSkuLoyalty; |
| <?php | |
| /** | |
| * @ORM\Entity | |
| * | |
| * @ApiResource( | |
| * normalizationContext={"groups"={"creditNote:read"}}, | |
| * collectionOperations={ | |
| * "get"={"controller"=NotFoundAction::class} | |
| * }, | |
| * itemOperations={ |
| https://www.codingame.com/evaluate/?target=clogin&id=2794381f2ab72d52aa23b4546f45454a7d533f2 |
Open port 443 on container, with a docker-compose file just add :
ports:
- 443:443
Add virtualhost config :
Listen 443 https
| version: 2 | |
| jobs: | |
| build: | |
| docker: | |
| - image: clemherreman/aif-ci:0.0.2 | |
| - image: mysql:5.6 | |
| environment: | |
| MYSQL_ROOT_PASSWORD: root |
| [vagrant@luceo-ocb vagrant]$ php -v | |
| PHP 5.4.41 (cli) (built: May 14 2015 23:37:34) | |
| Copyright (c) 1997-2014 The PHP Group | |
| Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies |
| package main | |
| import "fmt" | |
| type IPAddr [4]byte | |
| func (i IPAddr) String() string { | |
| return string(i[0]) // Returns an empty string | |
| return fmt.Sprintf("%v.%v.%v.%v", i[0], i[1], i[2], i[3]) // Only way to cast byte to string is through Sprintf | |
| } |
| <?php | |
| class FailTest extends \PHPUnit_Framework_TestCase | |
| { | |
| public function testfail() | |
| { | |
| fail(); | |
| $this->assertTrue(true); | |
| } | |
| } |
| class MyService { | |
| private $finderFactory; | |
| public function __construct(callable $finderFactory) | |
| { | |
| $this->finderFactory = $finderFactory; | |
| } | |
| public function findStuff() | |
| { |
| // Step 1: include jQuery | |
| var jq = document.createElement('script'); | |
| jq.src = "//code.jquery.com/jquery-latest.min.js"; | |
| document.getElementsByTagName('head')[0].appendChild(jq); | |
| // ... give time for script to load, then type. | |
| jQuery.noConflict(); | |
| // Step 2: create a textarea | |
| jQuery('#console').after('<textarea id="filenames"></textarea>'); |