Skip to content

Instantly share code, notes, and snippets.

Avatar

Nico Schoenmaker nicoschoenmaker

View GitHub Profile
@nicoschoenmaker
nicoschoenmaker / DeprecationErrorHandler.php
Created Feb 19, 2016
Logging Symfony deprecation errors to the log
View DeprecationErrorHandler.php
/**
* The goal of this handler is to write all silenced (@) E_USER_DEPRECATION
* errors to the server error log.
*
* Please note that only one error handler can be active at any given point in
* time. This means two things:
* - We have to be a good citizen and call the previous error handler (if any).
* - We're fully dependant for later error handlers to do the same thing.
*/
class DeprecationErrorHandler
@nicoschoenmaker
nicoschoenmaker / deployment_triangle.dot
Created Feb 4, 2013
"Dot" /graphviz source code of graph used to create the image of the deployment triangle at http://nschoenmaker.nl/2013/02/technical-solution-to-a-social-problem
View deployment_triangle.dot
digraph deployment_triangle {
subgraph same_ranking_subgraph {
rank = same;
deployed;
master;
}
deployed -> "target tag" -> master -> "target tag" -> deployed -> master -> deployed
}