Skip to content

Instantly share code, notes, and snippets.

@brookinsconsulting
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brookinsconsulting/740e3105654d2e09239a to your computer and use it in GitHub Desktop.
Save brookinsconsulting/740e3105654d2e09239a to your computer and use it in GitHub Desktop.
Blog post: 'Change user authentication to login with email' Service Definitions (Modified to use validated xml; which was missing from blog post examples). Also added a auto converted services.yml example (Converted using website: http://converter.rosstuck.com). From: http://blog.silversolutions.de/2014/07/ezpublish/extend-ez-5-3-login-email/ Do…
<?xml version="1.0" encoding="utf-8" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<parameters>
<parameter key="security.authentication.provider.dao.class">SilversolutionsBundleEshopBundleServiceSecurityAuthenticationProvider</parameter>
</parameters>
<services>
<service id="security.authentication.provider.dao" class="%security.authentication.provider.dao.class%" abstract="true" public="false">
<argument /> <!-- User Provider -->
<argument type="service" id="security.user_checker" />
<argument /> <!-- Provider-shared Key -->
<argument type="service" id="security.encoder_factory" />
<argument>%security.authentication.hide_user_not_found%</argument>
<call method="setRepository">
<argument type="service" id="ezpublish.api.repository" />
</call>
<call method="setSession">
<argument type="service" id="session" />
</call>
</service>
</services>
</container>
parameters:
security.authentication.provider.dao.class: SilversolutionsBundleEshopBundleServiceSecurityAuthenticationProvider
services:
security.authentication.provider.dao:
class: %security.authentication.provider.dao.class%
public: false
arguments: ['', '@security.user_checker', '', '@security.encoder_factory', '%security.authentication.hide_user_not_found%']
calls:
- [setRepository, ['@ezpublish.api.repository']]
- [setSession, ['@session']]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment