TYPO3 CMS  TYPO3_8-7
AbstractBackendController.php
Go to the documentation of this file.
1 <?php
2 declare(strict_types = 1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
22 
29 {
30 
34  protected $formSettings;
35 
40 
45  public function injectFormPersistenceManager(\TYPO3\CMS\Form\Mvc\Persistence\FormPersistenceManagerInterface $formPersistenceManager)
46  {
47  $this->formPersistenceManager = $formPersistenceManager;
48  }
49 
53  public function initializeObject()
54  {
55  $this->formSettings = $this->objectManager->get(ConfigurationManagerInterface::class)
57  }
58 
76  protected function resolveResourcePaths(array $resourcePaths): array
77  {
78  $return = [];
79  foreach ($resourcePaths as $resourcePath) {
80  $fullResourcePath = GeneralUtility::getFileAbsFileName($resourcePath);
81  $resourcePath = PathUtility::getAbsoluteWebPath($fullResourcePath);
82  if (empty($resourcePath)) {
83  continue;
84  }
85  $return[] = $resourcePath;
86  }
87 
88  return $return;
89  }
90 }
static getAbsoluteWebPath($targetPath)
Definition: PathUtility.php:40
static getFileAbsFileName($filename, $_=null, $_2=null)
injectFormPersistenceManager(\TYPO3\CMS\Form\Mvc\Persistence\FormPersistenceManagerInterface $formPersistenceManager)