UPDATE: https://github.com/tassoevan/pdo-oci-extension
Special thanks to:
UPDATE: https://github.com/tassoevan/pdo-oci-extension
Special thanks to:
{% if breadcrumb is defined %} | |
<ol class="breadcrumb"> | |
<li><a href="{{ path('home_page_route') }}"><i class="fa fa-dashboard"></i>Home Page</a></li> | |
{% for route, name in breadcrumb %} | |
{% set params = {} %} | |
{% if name is iterable %} | |
{% set params = name.params %} | |
{% set name = name.name %} | |
{% endif %} | |
{% if loop.first %} |
require "log4r" | |
require 'childprocess' | |
require "vagrant/util/file_mode" | |
require "vagrant/util/platform" | |
require "vagrant/util/safe_exec" | |
require "vagrant/util/subprocess" | |
require "vagrant/util/which" |
<?php | |
class example { | |
const val = "print value"; | |
public function __toString(){ | |
return self::val; | |
} | |
public function __call($name,$arr){ | |
echo "There is no method called {$name}"; |
<?php | |
/** | |
* @param mixeds $className | |
**/ | |
function __autoload($className){ | |
$file = "./lib/{$className}.php"; | |
if(file_exists($file)){ | |
require_once($file); | |
}else{ |
<?xml version="1.0" encoding="UTF-8"?> | |
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | |
{% for url in urls %} | |
<url>{# check if hostname is not alreay in url#} | |
<loc>http://{%if url.loc|replace({hostname:''}) == url.loc%}{{hostname}}{{url.loc}}{%else%}{{url.loc}}{%endif%}</loc> | |
{% if url.lastmod is defined %} | |
<lastmod>{{url.lastmod}}</lastmod> | |
{% endif %} | |
{% if url.changefreq is defined %} | |
<changefreq>{{url.changefreq}}</changefreq> |
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.