Skip to content

Commit

Permalink
[TASK] rename ext and namespace (#90)
Browse files Browse the repository at this point in the history
Co-authored-by: DDEV User <[email protected]>
  • Loading branch information
DatFaili and DDEV User authored Apr 12, 2024
1 parent b27ce19 commit c15c4b6
Show file tree
Hide file tree
Showing 42 changed files with 207 additions and 215 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"prefer-stable": true,
"require": {
"php": "^8.2",
"surfcamp/portfolio": "dev-main",
"friendsoftypo3/theme-portfolio": "dev-main",
"typo3/cms-backend": "dev-main",
"typo3/cms-belog": "dev-main",
"typo3/cms-beuser": "dev-main",
Expand Down
113 changes: 56 additions & 57 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config/sites/portfolio/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
base: '%env(TYPO3_BASE_URL)%'
dependencies:
- surfcamp/base
- friendsoftypo3/base
errorHandling:
-
errorCode: 404
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace Surfcamp\Portfolio\Controller;
namespace FriendsOfTYPO3\ThemePortfolio\Controller;

use Psr\Http\Message\ResponseInterface;
use Surfcamp\Portfolio\Domain\Model\Project;
use FriendsOfTYPO3\ThemePortfolio\Domain\Model\Project;
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController;
use Surfcamp\Portfolio\Domain\Repository\ProjectRepository;
use FriendsOfTYPO3\ThemePortfolio\Domain\Repository\ProjectRepository;

class ProjectController extends ActionController
{
Expand Down
2 changes: 1 addition & 1 deletion local_packages/portfolio/Classes/Domain/Model/Link.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Surfcamp\Portfolio\Domain\Model;
namespace FriendsOfTYPO3\ThemePortfolio\Domain\Model;

use Symfony\Component\Config\Resource\FileResource;
use TYPO3\CMS\Core\Resource\FileReference;
Expand Down
2 changes: 1 addition & 1 deletion local_packages/portfolio/Classes/Domain/Model/Project.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Surfcamp\Portfolio\Domain\Model;
namespace FriendsOfTYPO3\ThemePortfolio\Domain\Model;

use TYPO3\CMS\Extbase\Domain\Model\Category;
use TYPO3\CMS\Extbase\Domain\Model\FileReference;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Surfcamp\Portfolio\Domain\Repository;
namespace FriendsOfTYPO3\ThemePortfolio\Domain\Repository;

use TYPO3\CMS\Extbase\Persistence\QueryInterface;
use TYPO3\CMS\Extbase\Persistence\Repository;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types = 1);

namespace Surfcamp\Portfolio\Hooks\PageRenderer;
namespace FriendsOfTYPO3\ThemePortfolio\Hooks\PageRenderer;

use Psr\Http\Message\ServerRequestInterface;
use TYPO3\CMS\Core\Http\ApplicationType;
Expand All @@ -27,8 +27,8 @@ public function execute(&$params, &$pagerenderer): void
$this->includeFont($settings['style']['font'], $pagerenderer);
$this->includeFont($settings['style']['copyFont'], $pagerenderer);

$pagerenderer->addCssFile('EXT:portfolio/Resources/Public/Fonts/roboto/webfont.css');
$pagerenderer->addCssFile('EXT:portfolio/Resources/Public/Fonts/roboto-slab/webfont.css');
$pagerenderer->addCssFile('EXT:theme_portfolio/Resources/Public/Fonts/roboto/webfont.css');
$pagerenderer->addCssFile('EXT:theme_portfolio/Resources/Public/Fonts/roboto-slab/webfont.css');
}

protected function includeFont($name, $pagerenderer) {
Expand All @@ -42,7 +42,7 @@ protected function findIncludePath($name): ?string
{
$name = strtolower($name);
$name = str_replace(' ', '-', $name);
$filename = 'EXT:portfolio/Resources/Public/Fonts/' . $name .'/webfont.css';
$filename = 'EXT:theme_portfolio/Resources/Public/Fonts/' . $name .'/webfont.css';
if (file_exists(GeneralUtility::getFileAbsFileName($filename))) {
return $filename;
}
Expand All @@ -54,4 +54,4 @@ protected function getSettings(ServerRequestInterface $request): array
{
return $request->getAttribute('site')->getConfiguration()['settings'];
}
}
}
2 changes: 1 addition & 1 deletion local_packages/portfolio/Classes/UserFunctions/SetCss.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Surfcamp\Portfolio\UserFunctions;
namespace FriendsOfTYPO3\ThemePortfolio\UserFunctions;

use Psr\Http\Message\ServerRequestInterface;
use TYPO3\CMS\Core\Utility\PathUtility;
Expand Down
8 changes: 4 additions & 4 deletions local_packages/portfolio/Configuration/Form/Setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ TYPO3:
persistenceManager:
allowSaveToExtensionPaths: true
allowedExtensionPaths:
110: EXT:portfolio/Resources/Private/Forms/
110: EXT:theme_portfolio/Resources/Private/Forms/
prototypes:
standard:
formElementsDefinition:
Expand All @@ -16,8 +16,8 @@ TYPO3:
# Standard-Sprachdatei von EXT:form (wird immer benötigt, muss aber nur in TYPO3 v8 und v9 manuell verlinkt werden):
10: 'EXT:form/Resources/Private/Language/locallang.xlf'
# Lade deine eigenen Sprachdateien nachfolgend:
20: 'EXT:portfolio/Resources/Private/Language/locallang_form.xlf'
20: 'EXT:theme_portfolio/Resources/Private/Language/locallang_form.xlf'
templateRootPaths:
20: 'EXT:portfolio/Resources/Private/Templates/Form/'
20: 'EXT:theme_portfolio/Resources/Private/Templates/Form/'
partialRootPaths:
20: 'EXT:portfolio/Resources/Private/Templates/Form/Partials/'
20: 'EXT:theme_portfolio/Resources/Private/Templates/Form/Partials/'
12 changes: 6 additions & 6 deletions local_packages/portfolio/Configuration/Icons.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,26 @@
return [
'icon_intro' => [
'provider' => BitmapIconProvider::class,
'source' => 'EXT:portfolio/Resources/Public/Icons/Backend/intro.png',
'source' => 'EXT:theme_portfolio/Resources/Public/Icons/Backend/intro.png',
],
'icon_skills' => [
'provider' => BitmapIconProvider::class,
'source' => 'EXT:portfolio/Resources/Public/Icons/Backend/skills.png',
'source' => 'EXT:theme_portfolio/Resources/Public/Icons/Backend/skills.png',
],
'icon_resume' => [
'provider' => BitmapIconProvider::class,
'source' => 'EXT:portfolio/Resources/Public/Icons/Backend/resume.png',
'source' => 'EXT:theme_portfolio/Resources/Public/Icons/Backend/resume.png',
],
'icon_services' => [
'provider' => BitmapIconProvider::class,
'source' => 'EXT:portfolio/Resources/Public/Icons/Backend/services.png',
'source' => 'EXT:theme_portfolio/Resources/Public/Icons/Backend/services.png',
],
'icon_clients' => [
'provider' => BitmapIconProvider::class,
'source' => 'EXT:portfolio/Resources/Public/Icons/Backend/clients.png',
'source' => 'EXT:theme_portfolio/Resources/Public/Icons/Backend/clients.png',
],
'icon_project' => [
'provider' => BitmapIconProvider::class,
'source' => 'EXT:portfolio/Resources/Public/Icons/Backend/project.png',
'source' => 'EXT:theme_portfolio/Resources/Public/Icons/Backend/project.png',
],
];
4 changes: 2 additions & 2 deletions local_packages/portfolio/Configuration/Services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ services:
autoconfigure: true
public: false

Surfcamp\Portfolio\:
resource: '../Classes/*'
FriendsOfTYPO3\ThemePortfolio\:
resource: '../Classes/*'
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
plugin.tx_portfolio.view {
layoutRootPaths {
0 = EXT:portfolio/Resources/Private/Templates/Layouts/
0 = EXT:theme_portfolio/Resources/Private/Templates/Layouts/
}
partialRootPaths {
0 = EXT:portfolio/Resources/Private/Templates/Partials/
0 = EXT:theme_portfolio/Resources/Private/Templates/Partials/
}
templateRootPaths {
0 = EXT:form/Resources/Private/Frontend/Templates/
}
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
lib.content = FLUIDTEMPLATE
lib.content {
layoutRootPaths.10 = EXT:portfolio/Resources/Private/Templates/Layouts/
partialRootPaths.10 = EXT:portfolio/Resources/Private/Templates/Partials/
templateRootPaths.10 = EXT:portfolio/Resources/Private/Templates/Content/
layoutRootPaths.10 = EXT:theme_portfolio/Resources/Private/Templates/Layouts/
partialRootPaths.10 = EXT:theme_portfolio/Resources/Private/Templates/Partials/
templateRootPaths.10 = EXT:theme_portfolio/Resources/Private/Templates/Content/

dataProcessing.1712913685 = site
}
Loading

0 comments on commit c15c4b6

Please sign in to comment.