Skip to content

Commit

Permalink
moved security factory into DI namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
kriswallsmith committed Apr 20, 2011
1 parent b711b79 commit db6262c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
@@ -1,6 +1,6 @@
<?php

namespace OpenSky\Bundle\LdapBundle\Security;
namespace OpenSky\Bundle\LdapBundle\DependencyInjection\Security;

use Symfony\Component\DependencyInjection\DefinitionDecorator;

Expand Down
@@ -1,8 +1,8 @@
<?php

namespace OpenSky\Bundle\LdapBundle\Tests\Security;
namespace OpenSky\Bundle\LdapBundle\Tests\DependencyInjection\Security;

use OpenSky\Bundle\LdapBundle\Security\HttpBasicPreAuthenticatedFactory;
use OpenSky\Bundle\LdapBundle\DependencyInjection\Security\HttpBasicPreAuthenticatedFactory;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
Expand All @@ -18,7 +18,7 @@ public function testCreate()
$defaultEntryPoint = $this->getMock('Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface');

// Load "security.authentication.listener.basic_pre_auth.class" parameter from ldap.xml
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../../Resources/config'));
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../../../Resources/config'));
$loader->load('ldap.xml');

list($provider, $listenerId, $returnedDefaultEntryPoint) = $factory->create($container, rand(), array(), $userProvider, $defaultEntryPoint);
Expand Down

0 comments on commit db6262c

Please sign in to comment.