"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "core-bundle/src/Controller/FrontendModule/AbstractFrontendModuleController.php" between
contao-4.9.11.tar.gz and contao-4.9.12.tar.gz

About: Contao (fka TYPOlight) is a content management system (CMS). Long-term support (LTS).

AbstractFrontendModuleController.php  (contao-4.9.11):AbstractFrontendModuleController.php  (contao-4.9.12)
skipping to change at line 17 skipping to change at line 17
* *
* (c) Leo Feyer * (c) Leo Feyer
* *
* @license LGPL-3.0-or-later * @license LGPL-3.0-or-later
*/ */
namespace Contao\CoreBundle\Controller\FrontendModule; namespace Contao\CoreBundle\Controller\FrontendModule;
use Contao\BackendTemplate; use Contao\BackendTemplate;
use Contao\CoreBundle\Controller\AbstractFragmentController; use Contao\CoreBundle\Controller\AbstractFragmentController;
use Contao\CoreBundle\Routing\ScopeMatcher;
use Contao\ModuleModel; use Contao\ModuleModel;
use Contao\Template; use Contao\Template;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
use Symfony\Contracts\Translation\TranslatorInterface; use Symfony\Contracts\Translation\TranslatorInterface;
abstract class AbstractFrontendModuleController extends AbstractFragmentControll er abstract class AbstractFrontendModuleController extends AbstractFragmentControll er
{ {
public function __invoke(Request $request, ModuleModel $model, string $secti on, array $classes = null): Response public function __invoke(Request $request, ModuleModel $model, string $secti on, array $classes = null): Response
{ {
skipping to change at line 54 skipping to change at line 53
} }
return $response; return $response;
} }
public static function getSubscribedServices(): array public static function getSubscribedServices(): array
{ {
$services = parent::getSubscribedServices(); $services = parent::getSubscribedServices();
$services['translator'] = TranslatorInterface::class; $services['translator'] = TranslatorInterface::class;
$services['contao.routing.scope_matcher'] = ScopeMatcher::class;
return $services; return $services;
} }
protected function getBackendWildcard(ModuleModel $module): Response protected function getBackendWildcard(ModuleModel $module): Response
{ {
$href = $this->get('router')->generate( $href = $this->get('router')->generate(
'contao_backend', 'contao_backend',
['do' => 'themes', 'table' => 'tl_module', 'act' => 'edit', 'id' => $module->id] ['do' => 'themes', 'table' => 'tl_module', 'act' => 'edit', 'id' => $module->id]
); );
 End of changes. 2 change blocks. 
2 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)