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
openapi: 3.0.0 | |
info: | |
title: Demo API | |
version: '1.0' | |
description: A sample API to describe the super powers of OpenAPI | |
contact: | |
name: Tijmen Wierenga | |
email: tijmen.wierenga@tweakers.net | |
servers: | |
- url: 'http://localhost' |
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
#syntax=docker/dockerfile:experimental | |
# Use official composer library to move the composer binary to the PHP container | |
FROM composer:1.9 AS composer | |
FROM php:7.4-apache | |
LABEL maintainer="t.wierenga@live.nl" | |
RUN apt update -y |
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
.dockerignore | |
.gitignore | |
.git/ | |
vendor/ |
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 | |
public function save(User $user, User ...$users): void | |
{ | |
$users[] = $user; | |
foreach ($users as $user) { | |
// Save the user | |
} | |
} |