Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_youtube
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TYPO3
sg_youtube
Commits
af021011
Verified
Commit
af021011
authored
1 year ago
by
Kevin Ditscheid
Browse files
Options
Downloads
Patches
Plain Diff
[BUGFIX] Replace Services.yaml with Services.php
parent
4e32719a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Configuration/Services.php
+42
-0
42 additions, 0 deletions
Configuration/Services.php
Configuration/Services.yaml
+0
-27
0 additions, 27 deletions
Configuration/Services.yaml
with
42 additions
and
27 deletions
Configuration/Services.php
0 → 100644
+
42
−
0
View file @
af021011
<?php
/***************************************************************
* Copyright notice
*
* (c) sgalinski Internet Services (https://www.sgalinski.de)
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
return
static
function
(
\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator
$containerConfigurator
)
:
void
{
$services
=
$containerConfigurator
->
services
();
$services
->
defaults
()
->
private
()
->
autowire
()
->
autoconfigure
();
$services
->
load
(
'SGalinski\\SgYoutube\\'
,
__DIR__
.
'/../Classes/'
);
$services
->
set
(
\SGalinski\SgYoutube\Preview\PreviewRenderer
::
class
)
->
public
();
$services
->
set
(
\SGalinski\SgYoutube\Service\YoutubeService
::
class
)
->
args
([
'$cache'
=>
'@cache.sgyoutube_cache'
])
->
public
()
->
autowire
(
FALSE
);
$services
->
set
(
'cache.sgyoutube_cache'
)
->
class
(
\TYPO3\CMS\Core\Cache\Frontend\FrontendInterface
::
class
)
->
factory
([
'@TYPO3\CMS\Core\Cache\CacheManager'
,
'getCache'
])
->
args
([
'sgyoutube_cache'
]);
$services
->
set
(
\SGalinski\SgYoutube\Form\Element\LicenceStatus
::
class
)
->
autowire
(
FALSE
)
->
autoconfigure
(
FALSE
);
};
This diff is collapsed.
Click to expand it.
Configuration/Services.yaml
deleted
100644 → 0
+
0
−
27
View file @
4e32719a
services
:
_defaults
:
autowire
:
true
autoconfigure
:
true
public
:
true
SGalinski\SgYoutube\
:
resource
:
'
../Classes/*'
SGalinski\SgYoutube\Preview\PreviewRenderer
:
public
:
true
autowire
:
true
SGalinski\SgYoutube\Service\YoutubeService
:
public
:
true
autowire
:
false
arguments
:
$cache
:
'
@cache.sgyoutube_cache'
cache.sgyoutube_cache
:
class
:
TYPO3\CMS\Core\Cache\Frontend\FrontendInterface
factory
:
[
'
@TYPO3\CMS\Core\Cache\CacheManager'
,
'
getCache'
]
arguments
:
[
'
sgyoutube_cache'
]
SGalinski\SgYoutube\Form\Element\LicenceStatus
:
autowire
:
false
autoconfigure
:
false
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment