http://docs.oasis-open.org/xliff/v1.2/cs02/xliff-core-1.2-strict.xsd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
'use strict'; | |
angular | |
.module('admin-lte', []) | |
.directive('adminLteLayout', adminLteLayoutDirective) | |
.directive('adminLteTree', adminLteTreeDirective) | |
.directive('adminLteSidebarToggle', adminLteSidebarToggleDirective) | |
.directive('adminLteSidebarToggleSwipe', adminLteSidebarToggleSwipeDirective) | |
.directive('adminLteBoxWidget', adminLteBoxWidgetDirective); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "create empty parameters" | |
task :parameters_empty do | |
on roles(:all) do | |
if not test("[ -f #{shared_path}/app/config/parameters.yml ]") | |
upload! StringIO.new('---'), "#{shared_path}/app/config/parameters.yml" | |
end | |
end | |
end | |
desc "configure parameters with dist values if not defined" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
grunt.initConfig({ | |
watch: { | |
options: { | |
livereload: true | |
}, | |
app: { | |
files: ['index.html', 'partials/**/*.html', 'js/**/*.js', 'css/**/*.css'], | |
tasks: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ErrorHandler(errorElement) { | |
var self = this; | |
self.errorcount = 0; | |
self.onerror = onerror; | |
self.originalOnerror = window.onerror; | |
self.revertErrorHandler = revertErrorHandler; | |
window.onerror = self.onerror; | |
window.onload = onload; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Application\ProdrepHelperBundle\Component\Event; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\Security\Core\Exception\AuthenticationException; | |
use Symfony\Component\Security\Core\Exception\AccessDeniedException; | |
use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent; | |
/** | |
*/ | |
class AjaxAuthenticationListener |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Remaps Configurations to Parameters | |
* | |
* @param array $configs The array of configurations | |
* @param ContainerBuilder $container The container builder | |
* @param string $prefix A prefix to apply to all parameters | |
* @param array $ignore An array of parameter namespaces to ignore | |
* @param array $isArray An array of parameter namespaces which should be arrays |
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:
- the registration as service of your custom FOSUBUserProvider (with the necessary parameters)
- set the service for
oauth_user_provider
in thesecurity.yml
with your custom created service
Here are the steps:
- Routing. In
routing.yml
I have added all the routes for both bundles. - Configuration. I have set the
config.yml
mostly as it is presented in the HWIOAuthBundle. - Security. I have set the
security.yml
mostly as it is presented in the HWIOAuthBundle (though my routes are using/login
pattern, not/connect
). Also, theoauth_user_provider
is set for my custom service.