Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
199 lars 1
<?php
2
 
3
use Clockwork\Support\Symfony\ClockworkFactory;
4
 
5
use Symfony\Component\DependencyInjection\Reference;
6
 
7
$container->autowire(Clockwork\Support\Symfony\ClockworkFactory::class);
8
 
9
$container->register(Clockwork\Clockwork::class)
10
	->setFactory([ new Reference(ClockworkFactory::class), 'clockwork' ])
11
	->setPublic(true);
12
 
13
$container->register(Clockwork\Authentication\AuthenticatorInterface::class)
14
	->setFactory([ new Reference(ClockworkFactory::class), 'clockworkAuthenticator' ])
15
	->setPublic(true);
16
 
17
$container->register(Clockwork\Storage\StorageInterface::class)
18
	->setFactory([ new Reference(ClockworkFactory::class), 'clockworkStorage' ])
19
	->setPublic(true);
20
 
21
$container->register(Clockwork\Support\Symfony\ClockworkSupport::class)
22
	->setArgument('$config', [])
23
	->setFactory([ new Reference(ClockworkFactory::class), 'clockworkSupport' ])
24
	->setPublic(true);
25
 
26
$container->autowire(Clockwork\Support\Symfony\ClockworkController::class)
27
	->setAutoconfigured(true);
28
 
29
$container->autowire(Clockwork\Support\Symfony\ClockworkListener::class)
30
	->setArgument('$profiler', new Reference('profiler'))
31
	->addTag('kernel.event_subscriber');
32
 
33
$container->autowire(Clockwork\Support\Symfony\ClockworkLoader::class)
34
	->addTag('routing.loader');
35
 
36
$container->setAlias('clockwork', Clockwork\Clockwork::class)->setPublic('true');
37
$container->setAlias('clockwork.authenticator', Clockwork\Authentication\AuthenticatorInterface::class)->setPublic('true');
38
$container->setAlias('clockwork.storage', Clockwork\Storage\StorageInterface::class)->setPublic('true');
39
$container->setAlias('clockwork.support', Clockwork\Support\Symfony\ClockworkSupport::class)->setPublic('true');