05/25/2018: tested with macOS Sierra High 10.12.6
08/04/2020: added @mayesa's suggestion to fix an exception with EventMachine 08/04/2020: tested with macOS Catalina 10.15.5
Install MailCatcher:
brew install ruby
sudo gem install mailcatcher
<?php declare(strict_types=1); | |
require_once "✨.🐘"; | |
✨($_)->strlen("foo")->var_dump($_); |
05/25/2018: tested with macOS Sierra High 10.12.6
08/04/2020: added @mayesa's suggestion to fix an exception with EventMachine 08/04/2020: tested with macOS Catalina 10.15.5
Install MailCatcher:
brew install ruby
sudo gem install mailcatcher
This guide shows how to set up a PHP and MySQL development environment using OSX's built-in Apache, using Homebrew to install necessary components. With this strategy, you can use different versions of PHP for certain virtual hosts.
VirtualHostX is a convenient way to manage development sites, but not required.
brew update
brew install php56
brew install php56-mcrypt
brew install mysql
server { | |
listen 80; | |
# Server name being used (exact name, wildcards or regular expression) | |
server_name mysite.com; | |
client_max_body_size 20M; | |
# Document root, make sure this points to your Symfony2 /web directory | |
root /home/user/sites/mysite.com/web; |
#add lines below to the hosts file | |
0.0.0.0 facebook.com | |
0.0.0.0 www.facebook.com | |
0.0.0.0 https://facebook.com | |
0.0.0.0 https://www.facebook.com |
Byobu Commands | |
============== | |
byobu Screen manager | |
Level 0 Commands (Quick Start) | |
------------------------------ | |
<F2> Create a new window |
@mixin row() { | |
margin-left: $gridGutterWidth * -1; | |
@media (max-width: 767px) { margin-left: 0; } | |
@media (min-width: 768px) and (max-width: 979px) { margin-left: $gridGutterWidth768 * -1; } | |
@media (min-width: 1200px) { margin-left: $gridGutterWidth1200 * -1; } | |
@include clearfix(); | |
} | |
@mixin column($columns: 1, $offset: 0) { | |
float: left; |
I have managed to install this… and make it work. I implemented it for Facebook and Google, but you can extend it. My solution it is mostly as described in #116, with a bit of more code presented. The key aspects that lack in the #116 presentation (IMO) are:
oauth_user_provider
in the security.yml
with your custom created serviceHere are the steps:
routing.yml
I have added all the routes for both bundles.config.yml
mostly as it is presented in the HWIOAuthBundle.security.yml
mostly as it is presented in the HWIOAuthBundle (though my routes are using /login
pattern, not /connect
). Also, the oauth_user_provider
is set for my custom service.user nginx; | |
worker_processes 2; | |
error_log /var/log/nginx/error.log; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} |