-
-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f059a16
commit f8022f6
Showing
74 changed files
with
279 additions
and
448 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,10 +32,8 @@ | |
* Admin class for the Block model. | ||
* | ||
* @author Thomas Rabaix <[email protected]> | ||
* | ||
* @final since sonata-project/page-bundle 3.26 | ||
*/ | ||
class BlockAdmin extends BaseBlockAdmin | ||
final class BlockAdmin extends BaseBlockAdmin | ||
{ | ||
/** | ||
* @var array | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,10 +39,8 @@ | |
* Admin definition for the Page class. | ||
* | ||
* @author Thomas Rabaix <[email protected]> | ||
* | ||
* @final since sonata-project/page-bundle 3.26 | ||
*/ | ||
class PageAdmin extends AbstractAdmin | ||
final class PageAdmin extends AbstractAdmin | ||
{ | ||
protected $classnameLabel = 'Page'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,10 +26,8 @@ | |
* Admin class for shared Block model. | ||
* | ||
* @author Romain Mouillard <[email protected]> | ||
* | ||
* @final since sonata-project/page-bundle 3.26 | ||
*/ | ||
class SharedBlockAdmin extends BaseBlockAdmin | ||
final class SharedBlockAdmin extends BaseBlockAdmin | ||
{ | ||
/** | ||
* @var string | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,10 +28,8 @@ | |
* Admin definition for the Site class. | ||
* | ||
* @author Thomas Rabaix <[email protected]> | ||
* | ||
* @final since sonata-project/page-bundle 3.26 | ||
*/ | ||
class SiteAdmin extends AbstractAdmin | ||
final class SiteAdmin extends AbstractAdmin | ||
{ | ||
protected $classnameLabel = 'Site'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,10 +23,8 @@ | |
* Admin definition for the Snapshot class. | ||
* | ||
* @author Thomas Rabaix <[email protected]> | ||
* | ||
* @final since sonata-project/page-bundle 3.26 | ||
*/ | ||
class SnapshotAdmin extends AbstractAdmin | ||
final class SnapshotAdmin extends AbstractAdmin | ||
{ | ||
protected $classnameLabel = 'Snapshot'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,10 +27,8 @@ | |
* BlockService for homepage breadcrumb. | ||
* | ||
* @author Sylvain Deloux <[email protected]> | ||
* | ||
* @final since sonata-project/page-bundle 3.26 | ||
*/ | ||
class BreadcrumbBlockService extends BaseBreadcrumbMenuBlockService | ||
final class BreadcrumbBlockService extends BaseBreadcrumbMenuBlockService | ||
{ | ||
/** | ||
* @var CmsManagerSelectorInterface | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,15 +27,13 @@ | |
* - sonata.page.cms.snapshot if the user is a standard user. | ||
* | ||
* @author Thomas Rabaix <[email protected]> | ||
* | ||
* @final since sonata-project/page-bundle 3.26 | ||
*/ | ||
class CmsManagerSelector implements CmsManagerSelectorInterface, LogoutHandlerInterface | ||
final class CmsManagerSelector implements CmsManagerSelectorInterface, LogoutHandlerInterface | ||
{ | ||
/** | ||
* @var ContainerInterface | ||
*/ | ||
protected $container; | ||
private $container; | ||
|
||
/** | ||
* @psalm-suppress ContainerDependency | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,10 +24,8 @@ | |
* The CmsPageManager class is in charge of retrieving the correct page (cms page or action page). | ||
* | ||
* @author Thomas Rabaix <[email protected]> | ||
* | ||
* @final since sonata-project/page-bundle 3.26 | ||
*/ | ||
class CmsPageManager extends BaseCmsPageManager | ||
final class CmsPageManager extends BaseCmsPageManager | ||
{ | ||
/** | ||
* @var BlockInteractorInterface | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,10 +26,8 @@ | |
* The CmsSnapshotManager class is in charge of retrieving the correct page (cms page or action page). | ||
* | ||
* @author Thomas Rabaix <[email protected]> | ||
* | ||
* @final since sonata-project/page-bundle 3.26 | ||
*/ | ||
class CmsSnapshotManager extends BaseCmsPageManager | ||
final class CmsSnapshotManager extends BaseCmsPageManager | ||
{ | ||
/** | ||
* @var SnapshotManagerInterface | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,25 +22,23 @@ | |
* on the current request. | ||
* | ||
* @author Thomas Rabaix <[email protected]> | ||
* | ||
* @final since sonata-project/page-bundle 3.26 | ||
*/ | ||
class DecoratorStrategy implements DecoratorStrategyInterface | ||
final class DecoratorStrategy implements DecoratorStrategyInterface | ||
{ | ||
/** | ||
* @var array | ||
*/ | ||
protected $ignoreRoutes; | ||
private $ignoreRoutes; | ||
|
||
/** | ||
* @var array | ||
*/ | ||
protected $ignoreRoutePatterns; | ||
private $ignoreRoutePatterns; | ||
|
||
/** | ||
* @var array | ||
*/ | ||
protected $ignoreUriPatterns; | ||
private $ignoreUriPatterns; | ||
|
||
public function __construct(array $ignoreRoutes, array $ignoreRoutePatterns, array $ignoreUriPatterns) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,10 +23,8 @@ | |
* Create a site. | ||
* | ||
* @author Thomas Rabaix <[email protected]> | ||
* | ||
* @final since sonata-project/page-bundle 3.26 | ||
*/ | ||
class CreateSiteCommand extends BaseCommand | ||
final class CreateSiteCommand extends BaseCommand | ||
{ | ||
public function configure(): void | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,10 +23,8 @@ | |
* Create snapshots for a site. | ||
* | ||
* @author Thomas Rabaix <[email protected]> | ||
* | ||
* @final since sonata-project/page-bundle 3.26 | ||
*/ | ||
class CreateSnapshotsCommand extends BaseCommand | ||
final class CreateSnapshotsCommand extends BaseCommand | ||
{ | ||
protected static $defaultName = 'sonata:page:create-snapshots'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,10 +24,8 @@ | |
* Update core routes by reading routing information. | ||
* | ||
* @author Thomas Rabaix <[email protected]> | ||
* | ||
* @final since sonata-project/page-bundle 3.26 | ||
*/ | ||
class UpdateCoreRoutesCommand extends BaseCommand | ||
final class UpdateCoreRoutesCommand extends BaseCommand | ||
{ | ||
public function configure(): void | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,25 +25,23 @@ | |
* Render a block in ajax. | ||
* | ||
* @author Thomas Rabaix <[email protected]> | ||
* | ||
* @final since sonata-project/page-bundle 3.26 | ||
*/ | ||
class AjaxController | ||
final class AjaxController | ||
{ | ||
/** | ||
* @var CmsManagerSelectorInterface | ||
*/ | ||
protected $cmsManagerSelector; | ||
private $cmsManagerSelector; | ||
|
||
/** | ||
* @var BlockRendererInterface | ||
*/ | ||
protected $blockRenderer; | ||
private $blockRenderer; | ||
|
||
/** | ||
* @var BlockContextManagerInterface | ||
*/ | ||
protected $contextManager; | ||
private $contextManager; | ||
|
||
/** | ||
* @param CmsManagerSelectorInterface $cmsManagerSelector CMS Manager selector | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,10 +25,8 @@ | |
* Block Admin Controller. | ||
* | ||
* @author Thomas Rabaix <[email protected]> | ||
* | ||
* @final since sonata-project/page-bundle 3.26 | ||
*/ | ||
class BlockAdminController extends Controller | ||
final class BlockAdminController extends Controller | ||
{ | ||
/** | ||
* @throws AccessDeniedException | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,10 +20,8 @@ | |
* Block controller. | ||
* | ||
* @author Thomas Rabaix <[email protected]> | ||
* | ||
* @final since sonata-project/page-bundle 3.26 | ||
*/ | ||
class BlockController extends Controller | ||
final class BlockController extends Controller | ||
{ | ||
/** | ||
* @return Response | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,10 +26,8 @@ | |
* Page Admin Controller. | ||
* | ||
* @author Thomas Rabaix <[email protected]> | ||
* | ||
* @final since sonata-project/page-bundle 3.26 | ||
*/ | ||
class PageAdminController extends Controller | ||
final class PageAdminController extends Controller | ||
{ | ||
/** | ||
* @throws AccessDeniedException | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,10 +28,8 @@ | |
* Page controller. | ||
* | ||
* @author Thomas Rabaix <[email protected]> | ||
* | ||
* @final since sonata-project/page-bundle 3.26 | ||
*/ | ||
class PageController extends Controller | ||
final class PageController extends Controller | ||
{ | ||
/** | ||
* @throws AccessDeniedException | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,10 +23,8 @@ | |
* Site Admin controller. | ||
* | ||
* @author Thomas Rabaix <[email protected]> | ||
* | ||
* @final since sonata-project/page-bundle 3.26 | ||
*/ | ||
class SiteAdminController extends Controller | ||
final class SiteAdminController extends Controller | ||
{ | ||
/** | ||
* @throws NotFoundHttpException | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,10 +23,8 @@ | |
* Snapshot Admin Controller. | ||
* | ||
* @author Thomas Rabaix <[email protected]> | ||
* | ||
* @final since sonata-project/page-bundle 3.26 | ||
*/ | ||
class SnapshotAdminController extends Controller | ||
final class SnapshotAdminController extends Controller | ||
{ | ||
public function createAction(?Request $request = null) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,10 +21,8 @@ | |
* GlobalVariablesCompilerPass. | ||
* | ||
* @author Thomas Rabaix <[email protected]> | ||
* | ||
* @final since sonata-project/page-bundle 3.26 | ||
*/ | ||
class GlobalVariablesCompilerPass implements CompilerPassInterface | ||
final class GlobalVariablesCompilerPass implements CompilerPassInterface | ||
{ | ||
public function process(ContainerBuilder $container): void | ||
{ | ||
|
Oops, something went wrong.