Skip to content

Instantly share code, notes, and snippets.

@akuehnis
akuehnis / php_crud_api_custom_controllers.md
Last active August 10, 2022 14:21
PHP-CRUD-API, how to use custom controllers

PHP-CRUD-API Custom Controllers

PHP-CRUD-API supports custom controllers. The usage is simple:

  1. Create a controller file
  2. Import the controller and make the controller known to the API using the config parameter 'customControllers'

Update August 2022: This code may be outdated. Please refer to the project documentation about custom controllers:

https://github.com/mevdschee/php-crud-api#custom-controller

@fxm90
fxm90 / Combine-CLLocationManagerDelegate.swift
Last active July 13, 2023 09:15
Playground showing how to convert a delegate pattern to combine publishers.
//
// Combine-CLLocationManagerDelegate.playground
//
// Created by Felix Mau on 30.07.20.
// Copyright © 2020 Felix Mau. All rights reserved.
//
import PlaygroundSupport
import Combine
import CoreLocation