-
Notifications
You must be signed in to change notification settings - Fork 0
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
roadiz-ci
committed
Feb 27, 2024
1 parent
7ec6978
commit 91f1615
Showing
36 changed files
with
239 additions
and
201 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
language: php | ||
sudo: required | ||
php: | ||
- 7.4 | ||
- 8.0 | ||
- 8.1 | ||
- nightly | ||
install: | ||
- curl -s http://getcomposer.org/installer | php | ||
- php composer.phar install --dev --no-interaction | ||
script: | ||
- vendor/bin/phpcs --report=full --report-file=./report.txt -p ./src | ||
- vendor/bin/phpstan analyse -c phpstan.neon | ||
jobs: | ||
allow_failures: | ||
- php: nightly |
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
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
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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace RZ\Roadiz\RozierBundle\Controller; | ||
|
||
use Psr\Log\LoggerInterface; | ||
use RZ\Roadiz\CompatBundle\Controller\AppController; | ||
use RZ\Roadiz\CoreBundle\Bag\NodeTypes; | ||
use RZ\Roadiz\CoreBundle\Bag\Roles; | ||
use RZ\Roadiz\CoreBundle\Bag\Settings; | ||
use RZ\Roadiz\CoreBundle\Mailer\EmailManager; | ||
use RZ\Roadiz\Documents\Packages; | ||
use RZ\Roadiz\OpenId\OAuth2LinkGenerator; | ||
use Symfony\Component\HttpKernel\KernelInterface; | ||
use Symfony\Component\Routing\Generator\UrlGeneratorInterface; | ||
use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface; | ||
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils; | ||
use Themes\Rozier\Explorer\FoldersProvider; | ||
use Themes\Rozier\Explorer\SettingsProvider; | ||
use Themes\Rozier\Explorer\UsersProvider; | ||
use Themes\Rozier\RozierServiceRegistry; | ||
|
||
/** | ||
* Special controller app file for backend themes. | ||
* | ||
* This AppController implementation will use a security scheme | ||
*/ | ||
abstract class BackendController extends AppController | ||
{ | ||
protected static bool $backendTheme = true; | ||
public static int $priority = -10; | ||
|
||
public static function getSubscribedServices(): array | ||
{ | ||
return array_merge(parent::getSubscribedServices(), [ | ||
'securityAuthenticationUtils' => AuthenticationUtils::class, | ||
'urlGenerator' => UrlGeneratorInterface::class, | ||
EmailManager::class => EmailManager::class, | ||
'logger' => LoggerInterface::class, | ||
'kernel' => KernelInterface::class, | ||
'settingsBag' => Settings::class, | ||
'nodeTypesBag' => NodeTypes::class, | ||
'rolesBag' => Roles::class, | ||
'assetPackages' => Packages::class, | ||
'csrfTokenManager' => CsrfTokenManagerInterface::class, | ||
OAuth2LinkGenerator::class => OAuth2LinkGenerator::class, | ||
RozierServiceRegistry::class => RozierServiceRegistry::class, | ||
UsersProvider::class => UsersProvider::class, | ||
SettingsProvider::class => SettingsProvider::class, | ||
FoldersProvider::class => FoldersProvider::class, | ||
]); | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function createEntityListManager($entity, array $criteria = [], array $ordering = []) | ||
{ | ||
return parent::createEntityListManager($entity, $criteria, $ordering) | ||
->setDisplayingNotPublishedNodes(true); | ||
} | ||
} |
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
Oops, something went wrong.