Probably one of the easiest things you'll ever do with gpg
Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH
First get the public key
keybase pgp export | gpg --import
Next get the private key
Probably one of the easiest things you'll ever do with gpg
Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH
First get the public key
keybase pgp export | gpg --import
Next get the private key
<?php | |
/** | |
* This file is part of TaladStatsBundle. | |
* | |
*/ | |
class KpiComparatorBehavior extends Behavior | |
{ | |
public function queryMethods($builder) |
SYMFONY__DATABASE_DRIVER="pdo_mysql" | |
SYMFONY__DATABASE_HOST="127.0.0.1" | |
SYMFONY__DATABASE_PORT=3306 | |
SYMFONY__DATABASE_NAME="symfony" | |
SYMFONY__DATABASE_USER="root" | |
SYMFONY__DATABASE_PASSWORD="" |
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.This is a list of the SublimeText 2 addons I use for my development environment.
# config/initializers/redcarpet.rb | |
module ActionView | |
module Template::Handlers | |
class Markdown | |
class_attribute :default_format | |
self.default_format = Mime::HTML | |
def call(template) | |
markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, :autolink => true, :space_after_headers => true) | |
markdown.render(template.source).html_safe.inspect |