Skip to content

Commit

Permalink
[Core] Symfony 7
Browse files Browse the repository at this point in the history
  • Loading branch information
that-guy-iain committed Feb 22, 2024
1 parent 181250c commit 46616f7
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 62 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static function getExtendedTypes(): iterable
public function configureOptions(OptionsResolver $resolver): void
{
$request = $this->requestStack->getCurrentRequest();
if ('json' === $request->getContentType()) {
if ('json' === $request->getContentTypeFormat()) {
$resolver->setDefaults([
'csrf_protection' => false,
]);
Expand Down
5 changes: 0 additions & 5 deletions src/Parthenon/DependencyInjection/Modules/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
namespace Parthenon\DependencyInjection\Modules;

use DocRaptor\Doc;
use Monolog\Logger;
use Mpdf\Mpdf;
use Parthenon\Common\Exception\MissingDependencyException;
use Parthenon\Common\Exception\ParameterNotSetException;
Expand Down Expand Up @@ -87,10 +86,6 @@ public function handleConfiguration(array $config, ContainerBuilder $container):
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../../Resources/config'));
$loader->load('services/common.xml');

if (Logger::API === 2) {
$loader->load('services/monolog_v2.xml');
}

if (!isset($config['common'])) {
return;
}
Expand Down
4 changes: 0 additions & 4 deletions src/Parthenon/DependencyInjection/Modules/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

namespace Parthenon\DependencyInjection\Modules;

use Monolog\Logger;
use Parthenon\Common\Exception\NonExistentClass;
use Parthenon\Common\Exception\ParameterNotSetException;
use Parthenon\User\Entity\TeamInterface;
Expand Down Expand Up @@ -106,9 +105,6 @@ public function handleConfiguration(array $config, ContainerBuilder $container):
$this->configureDoctrine($bundles, $loader);

$loader->load('services/user.xml');
if (Logger::API === 2) {
$loader->load('services/user_monolog_v2.xml');
}

$this->configureAutotagging($container);
$config = $this->configureUserClass($config, $container);
Expand Down
29 changes: 0 additions & 29 deletions src/Parthenon/Resources/config/services/monolog_v2.xml

This file was deleted.

23 changes: 0 additions & 23 deletions src/Parthenon/Resources/config/services/user_monolog_v2.xml

This file was deleted.

0 comments on commit 46616f7

Please sign in to comment.