Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_cloud_front
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
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_cloud_front
Merge requests
!1
[TASK] Typo3v8 compatibility updates
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
[TASK] Typo3v8 compatibility updates
typo3v8compatibility
into
master
Overview
0
Commits
1
Pipelines
0
Changes
4
Merged
Paul Ilea
requested to merge
typo3v8compatibility
into
master
7 years ago
Overview
0
Commits
1
Pipelines
0
Changes
4
Expand
Includes CGL and other optimisation changes
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
9d4c1798
1 commit,
7 years ago
4 files
+
123
−
88
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
Classes/Hooks/AbstractHook.php
0 → 100755
+
63
−
0
Options
<?php
namespace
SGalinski\SgCloudFront\Hooks
;
/***************************************************************
* 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 3 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!
***************************************************************/
use
SGalinski\SgCloudFront\Service\ResourceExtractionService
;
use
TYPO3\CMS\Core\Utility\GeneralUtility
;
use
TYPO3\CMS\Extbase\Object\ObjectManager
;
/**
* Class for the contentPostProc-all hook
*/
abstract
class
AbstractHook
{
/**
* @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface
*/
protected
$objectManager
;
/**
* @var \SGalinski\SgCloudFront\Service\ResourceExtractionService
*/
protected
$resourceExtractionService
;
/**
* @var array
*/
protected
$configuration
=
[];
/**
* Constructor
*
* @throws \InvalidArgumentException
*/
public
function
__construct
()
{
$this
->
objectManager
=
GeneralUtility
::
makeInstance
(
ObjectManager
::
class
);
$this
->
configuration
=
unserialize
(
$GLOBALS
[
'TYPO3_CONF_VARS'
][
'EXT'
][
'extConf'
][
'sg_cloud_front'
]);
$this
->
resourceExtractionService
=
$this
->
objectManager
->
get
(
ResourceExtractionService
::
class
);
}
}
Loading