This file contains 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
version: "3.1" | |
services: | |
mysql: | |
image: mysql:5.7 | |
container_name: oneprojectday-mysql | |
working_dir: /application | |
volumes: | |
- .:/application | |
environment: | |
- MYSQL_ROOT_PASSWORD=secret |
This file contains 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
version: "3.1" | |
services: | |
php-fpm: | |
image: webdevops/php-nginx:7.4 | |
container_name: myapp-webserver | |
working_dir: /app | |
volumes: | |
- ./:/app | |
environment: | |
- WEB_DOCUMENT_ROOT=/app/webroot |
This file contains 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 | |
class JobController extends AppController | |
{ | |
public function add() | |
{ | |
$statuses = $this->Job->getStatuses(); | |
$this->set('statuses', $statuses); | |
} | |
} |
This file contains 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 App\Bonus; | |
class FindBonusCollection implements Iterator | |
{ | |
private $_finders = array(); | |
public function add(IFindBonus $finder) | |
{ | |
$this->_finders[] = $finder; | |
} |