File tree Expand file tree Collapse file tree 21 files changed +64
-64
lines changed
Security/Authorization/Voter Expand file tree Collapse file tree 21 files changed +64
-64
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Cmf \Bundle \CoreBundle ;
13
13
14
- use Symfony \Component \HttpKernel \Bundle \Bundle ;
15
- use Symfony \Component \DependencyInjection \ContainerBuilder ;
16
14
use Symfony \Cmf \Bundle \CoreBundle \DependencyInjection \Compiler \AddPublishedVotersPass ;
15
+ use Symfony \Component \DependencyInjection \ContainerBuilder ;
16
+ use Symfony \Component \HttpKernel \Bundle \Bundle ;
17
17
18
18
class CmfCoreBundle extends Bundle
19
19
{
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Cmf \Bundle \CoreBundle \DependencyInjection ;
13
13
14
14
use Symfony \Cmf \Bundle \RoutingBundle \Routing \DynamicRouter ;
15
- use Symfony \Component \HttpKernel \DependencyInjection \Extension ;
16
15
use Symfony \Component \Config \Definition \Exception \InvalidConfigurationException ;
17
- use Symfony \Component \Config \Loader \LoaderInterface ;
18
16
use Symfony \Component \Config \FileLocator ;
17
+ use Symfony \Component \Config \Loader \LoaderInterface ;
19
18
use Symfony \Component \DependencyInjection \ContainerBuilder ;
20
- use Symfony \Component \DependencyInjection \Loader \XmlFileLoader ;
21
19
use Symfony \Component \DependencyInjection \Extension \PrependExtensionInterface ;
20
+ use Symfony \Component \DependencyInjection \Loader \XmlFileLoader ;
22
21
use Symfony \Component \DependencyInjection \Reference ;
22
+ use Symfony \Component \HttpKernel \DependencyInjection \Extension ;
23
23
24
24
class CmfCoreExtension extends Extension implements PrependExtensionInterface
25
25
{
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Cmf \Bundle \CoreBundle \DependencyInjection \Compiler ;
13
13
14
- use Symfony \Component \DependencyInjection \Reference ;
15
- use Symfony \Component \DependencyInjection \ContainerBuilder ;
16
14
use Symfony \Component \DependencyInjection \Compiler \CompilerPassInterface ;
15
+ use Symfony \Component \DependencyInjection \ContainerBuilder ;
16
+ use Symfony \Component \DependencyInjection \Reference ;
17
17
18
18
/**
19
19
* Adds all configured publish voters to the access decision manager used for
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Cmf \Bundle \CoreBundle \EventListener ;
13
13
14
+ use Symfony \Cmf \Bundle \CoreBundle \PublishWorkflow \PublishWorkflowChecker ;
15
+ use Symfony \Cmf \Bundle \RoutingBundle \Routing \DynamicRouter ;
14
16
use Symfony \Component \EventDispatcher \EventSubscriberInterface ;
15
- use Symfony \Component \HttpKernel \KernelEvents ;
16
17
use Symfony \Component \HttpKernel \Event \GetResponseEvent ;
17
18
use Symfony \Component \HttpKernel \Exception \NotFoundHttpException ;
18
- use Symfony \Cmf \Bundle \CoreBundle \PublishWorkflow \PublishWorkflowChecker ;
19
- use Symfony \Cmf \Bundle \RoutingBundle \Routing \DynamicRouter ;
19
+ use Symfony \Component \HttpKernel \KernelEvents ;
20
20
21
21
/**
22
22
* A request listener that makes sure only published routes and content can be
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Cmf \Bundle \CoreBundle \Form \Type ;
13
13
14
- use Symfony \Component \Routing \RouterInterface ;
15
- use Symfony \Component \Routing \Generator \UrlGeneratorInterface ;
16
14
use Symfony \Component \Form \AbstractType ;
17
15
use Symfony \Component \Form \Extension \Core \Type \CheckboxType ;
18
- use Symfony \Component \Form \FormView ;
19
16
use Symfony \Component \Form \FormInterface ;
17
+ use Symfony \Component \Form \FormView ;
20
18
use Symfony \Component \OptionsResolver \OptionsResolver ;
21
19
use Symfony \Component \OptionsResolver \OptionsResolverInterface ;
20
+ use Symfony \Component \Routing \Generator \UrlGeneratorInterface ;
21
+ use Symfony \Component \Routing \RouterInterface ;
22
22
23
23
/**
24
24
* Form type for rendering a checkbox with a label that can contain links to
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Cmf \Bundle \CoreBundle \PublishWorkflow \Voter ;
13
13
14
+ use Symfony \Cmf \Bundle \CoreBundle \PublishWorkflow \PublishTimePeriodReadInterface ;
14
15
use Symfony \Cmf \Bundle \CoreBundle \PublishWorkflow \PublishWorkflowChecker ;
15
16
use Symfony \Component \Security \Core \Authentication \Token \TokenInterface ;
16
17
use Symfony \Component \Security \Core \Authorization \Voter \VoterInterface ;
17
- use Symfony \Cmf \Bundle \CoreBundle \PublishWorkflow \PublishTimePeriodReadInterface ;
18
18
19
19
/**
20
20
* Workflow voter for the PublishTimePeriodReadInterface.
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Cmf \Bundle \CoreBundle \PublishWorkflow \Voter ;
13
13
14
+ use Symfony \Cmf \Bundle \CoreBundle \PublishWorkflow \PublishableReadInterface ;
14
15
use Symfony \Cmf \Bundle \CoreBundle \PublishWorkflow \PublishWorkflowChecker ;
15
16
use Symfony \Component \Security \Core \Authentication \Token \TokenInterface ;
16
17
use Symfony \Component \Security \Core \Authorization \Voter \VoterInterface ;
17
- use Symfony \Cmf \Bundle \CoreBundle \PublishWorkflow \PublishableReadInterface ;
18
18
19
19
/**
20
20
* Workflow voter for the PublishableReadInterface.
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Cmf \Bundle \CoreBundle \Security \Authorization \Voter ;
13
13
14
+ use Symfony \Cmf \Bundle \CoreBundle \PublishWorkflow \PublishWorkflowChecker ;
14
15
use Symfony \Component \Security \Core \Authentication \Token \TokenInterface ;
15
16
use Symfony \Component \Security \Core \Authorization \Voter \VoterInterface ;
16
- use Symfony \Cmf \Bundle \CoreBundle \PublishWorkflow \PublishWorkflowChecker ;
17
17
18
18
/**
19
19
* This is a security voter registered with the Symfony security system that
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Cmf \Bundle \CoreBundle \Templating \Helper ;
13
13
14
- use PHPCR \Util \PathHelper ;
15
14
use Doctrine \Common \Persistence \ManagerRegistry ;
16
15
use Doctrine \ODM \PHPCR \DocumentManager ;
17
16
use Doctrine \ODM \PHPCR \Translation \MissingTranslationException ;
17
+ use PHPCR \Util \PathHelper ;
18
+ use Symfony \Cmf \Bundle \CoreBundle \PublishWorkflow \PublishWorkflowChecker ;
18
19
use Symfony \Cmf \Component \Routing \RouteReferrersReadInterface ;
19
- use Symfony \Component \Routing \Route ;
20
- use Symfony \Component \Templating \Helper \Helper ;
21
20
use Symfony \Component \Config \Definition \Exception \InvalidConfigurationException ;
21
+ use Symfony \Component \Routing \Route ;
22
22
use Symfony \Component \Security \Core \Authorization \AuthorizationCheckerInterface ;
23
- use Symfony \Cmf \ Bundle \ CoreBundle \ PublishWorkflow \ PublishWorkflowChecker ;
23
+ use Symfony \Component \ Templating \ Helper \ Helper ;
24
24
25
25
/**
26
26
* Provides CMF helper functions.
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Cmf \Bundle \CoreBundle \Tests \Functional \DependencyInjection ;
13
13
14
- use Symfony \Component \DependencyInjection \ContainerBuilder ;
15
14
use Symfony \Cmf \Bundle \CoreBundle \DependencyInjection \CmfCoreExtension ;
16
15
use Symfony \Cmf \Bundle \CoreBundle \PublishWorkflow \AlwaysPublishedWorkflowChecker ;
16
+ use Symfony \Component \DependencyInjection \ContainerBuilder ;
17
17
18
18
class CmfCoreExtensionTest extends \PHPUnit_Framework_TestCase
19
19
{
You can’t perform that action at this time.
0 commit comments