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 1111
1212namespace Symfony \Cmf \Bundle \CoreBundle ;
1313
14- use Symfony \Component \HttpKernel \Bundle \Bundle ;
15- use Symfony \Component \DependencyInjection \ContainerBuilder ;
1614use Symfony \Cmf \Bundle \CoreBundle \DependencyInjection \Compiler \AddPublishedVotersPass ;
15+ use Symfony \Component \DependencyInjection \ContainerBuilder ;
16+ use Symfony \Component \HttpKernel \Bundle \Bundle ;
1717
1818class CmfCoreBundle extends Bundle
1919{
Original file line number Diff line number Diff line change 1212namespace Symfony \Cmf \Bundle \CoreBundle \DependencyInjection ;
1313
1414use Symfony \Cmf \Bundle \RoutingBundle \Routing \DynamicRouter ;
15- use Symfony \Component \HttpKernel \DependencyInjection \Extension ;
1615use Symfony \Component \Config \Definition \Exception \InvalidConfigurationException ;
17- use Symfony \Component \Config \Loader \LoaderInterface ;
1816use Symfony \Component \Config \FileLocator ;
17+ use Symfony \Component \Config \Loader \LoaderInterface ;
1918use Symfony \Component \DependencyInjection \ContainerBuilder ;
20- use Symfony \Component \DependencyInjection \Loader \XmlFileLoader ;
2119use Symfony \Component \DependencyInjection \Extension \PrependExtensionInterface ;
20+ use Symfony \Component \DependencyInjection \Loader \XmlFileLoader ;
2221use Symfony \Component \DependencyInjection \Reference ;
22+ use Symfony \Component \HttpKernel \DependencyInjection \Extension ;
2323
2424class CmfCoreExtension extends Extension implements PrependExtensionInterface
2525{
Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Cmf \Bundle \CoreBundle \DependencyInjection \Compiler ;
1313
14- use Symfony \Component \DependencyInjection \Reference ;
15- use Symfony \Component \DependencyInjection \ContainerBuilder ;
1614use Symfony \Component \DependencyInjection \Compiler \CompilerPassInterface ;
15+ use Symfony \Component \DependencyInjection \ContainerBuilder ;
16+ use Symfony \Component \DependencyInjection \Reference ;
1717
1818/**
1919 * Adds all configured publish voters to the access decision manager used for
Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Cmf \Bundle \CoreBundle \EventListener ;
1313
14+ use Symfony \Cmf \Bundle \CoreBundle \PublishWorkflow \PublishWorkflowChecker ;
15+ use Symfony \Cmf \Bundle \RoutingBundle \Routing \DynamicRouter ;
1416use Symfony \Component \EventDispatcher \EventSubscriberInterface ;
15- use Symfony \Component \HttpKernel \KernelEvents ;
1617use Symfony \Component \HttpKernel \Event \GetResponseEvent ;
1718use 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 ;
2020
2121/**
2222 * A request listener that makes sure only published routes and content can be
Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Cmf \Bundle \CoreBundle \Form \Type ;
1313
14- use Symfony \Component \Routing \RouterInterface ;
15- use Symfony \Component \Routing \Generator \UrlGeneratorInterface ;
1614use Symfony \Component \Form \AbstractType ;
1715use Symfony \Component \Form \Extension \Core \Type \CheckboxType ;
18- use Symfony \Component \Form \FormView ;
1916use Symfony \Component \Form \FormInterface ;
17+ use Symfony \Component \Form \FormView ;
2018use Symfony \Component \OptionsResolver \OptionsResolver ;
2119use Symfony \Component \OptionsResolver \OptionsResolverInterface ;
20+ use Symfony \Component \Routing \Generator \UrlGeneratorInterface ;
21+ use Symfony \Component \Routing \RouterInterface ;
2222
2323/**
2424 * Form type for rendering a checkbox with a label that can contain links to
Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Cmf \Bundle \CoreBundle \PublishWorkflow \Voter ;
1313
14+ use Symfony \Cmf \Bundle \CoreBundle \PublishWorkflow \PublishTimePeriodReadInterface ;
1415use Symfony \Cmf \Bundle \CoreBundle \PublishWorkflow \PublishWorkflowChecker ;
1516use Symfony \Component \Security \Core \Authentication \Token \TokenInterface ;
1617use Symfony \Component \Security \Core \Authorization \Voter \VoterInterface ;
17- use Symfony \Cmf \Bundle \CoreBundle \PublishWorkflow \PublishTimePeriodReadInterface ;
1818
1919/**
2020 * Workflow voter for the PublishTimePeriodReadInterface.
Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Cmf \Bundle \CoreBundle \PublishWorkflow \Voter ;
1313
14+ use Symfony \Cmf \Bundle \CoreBundle \PublishWorkflow \PublishableReadInterface ;
1415use Symfony \Cmf \Bundle \CoreBundle \PublishWorkflow \PublishWorkflowChecker ;
1516use Symfony \Component \Security \Core \Authentication \Token \TokenInterface ;
1617use Symfony \Component \Security \Core \Authorization \Voter \VoterInterface ;
17- use Symfony \Cmf \Bundle \CoreBundle \PublishWorkflow \PublishableReadInterface ;
1818
1919/**
2020 * Workflow voter for the PublishableReadInterface.
Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Cmf \Bundle \CoreBundle \Security \Authorization \Voter ;
1313
14+ use Symfony \Cmf \Bundle \CoreBundle \PublishWorkflow \PublishWorkflowChecker ;
1415use Symfony \Component \Security \Core \Authentication \Token \TokenInterface ;
1516use Symfony \Component \Security \Core \Authorization \Voter \VoterInterface ;
16- use Symfony \Cmf \Bundle \CoreBundle \PublishWorkflow \PublishWorkflowChecker ;
1717
1818/**
1919 * This is a security voter registered with the Symfony security system that
Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Cmf \Bundle \CoreBundle \Templating \Helper ;
1313
14- use PHPCR \Util \PathHelper ;
1514use Doctrine \Common \Persistence \ManagerRegistry ;
1615use Doctrine \ODM \PHPCR \DocumentManager ;
1716use Doctrine \ODM \PHPCR \Translation \MissingTranslationException ;
17+ use PHPCR \Util \PathHelper ;
18+ use Symfony \Cmf \Bundle \CoreBundle \PublishWorkflow \PublishWorkflowChecker ;
1819use Symfony \Cmf \Component \Routing \RouteReferrersReadInterface ;
19- use Symfony \Component \Routing \Route ;
20- use Symfony \Component \Templating \Helper \Helper ;
2120use Symfony \Component \Config \Definition \Exception \InvalidConfigurationException ;
21+ use Symfony \Component \Routing \Route ;
2222use Symfony \Component \Security \Core \Authorization \AuthorizationCheckerInterface ;
23- use Symfony \Cmf \ Bundle \ CoreBundle \ PublishWorkflow \ PublishWorkflowChecker ;
23+ use Symfony \Component \ Templating \ Helper \ Helper ;
2424
2525/**
2626 * Provides CMF helper functions.
Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Cmf \Bundle \CoreBundle \Tests \Functional \DependencyInjection ;
1313
14- use Symfony \Component \DependencyInjection \ContainerBuilder ;
1514use Symfony \Cmf \Bundle \CoreBundle \DependencyInjection \CmfCoreExtension ;
1615use Symfony \Cmf \Bundle \CoreBundle \PublishWorkflow \AlwaysPublishedWorkflowChecker ;
16+ use Symfony \Component \DependencyInjection \ContainerBuilder ;
1717
1818class CmfCoreExtensionTest extends \PHPUnit_Framework_TestCase
1919{
You can’t perform that action at this time.
0 commit comments