Skip to content

Instantly share code, notes, and snippets.

<?php
namespace TYPO3\Module\Controller;
/* *
* This script belongs to the FLOW3 package "TYPO3". *
* *
* It is free software; you can redistribute it and/or modify it under *
* the terms of the GNU General Public License, either version 3 of the *
* License, or (at your option) any later version. *
* *
<?php
namespace TYPO3\TYPO3\Routing;
/* *
* This script belongs to the FLOW3 package "TYPO3". *
* *
* It is free software; you can redistribute it and/or modify it under *
* the terms of the GNU General Public License, either version 3 of the *
* License, or (at your option) any later version. *
* *
<?php
/* *
* This script belongs to the FLOW3 framework. *
* *
* It is free software; you can redistribute it and/or modify it under *
* the terms of the GNU Lesser General Public License as published by the *
* Free Software Foundation, either version 3 of the License, or (at your *
* option) any later version. *
* *
plugin.tx_scriptmerger {
css {
enable = 1
addContentInDocument = 0
# minification
minify {
enable = 1
ignore = \.min\.
}
<?php
/* *
* This script belongs to the FLOW3 framework. *
* *
* It is free software; you can redistribute it and/or modify it under *
* the terms of the GNU Lesser General Public License as published by the *
* Free Software Foundation, either version 3 of the License, or (at your *
* option) any later version. *
* *
<?php
namespace TYPO3\TYPO3\Setup\Step;
/* *
* This script belongs to the FLOW3 package "TYPO3.Setup". *
* *
* It is free software; you can redistribute it and/or modify it under *
* the terms of the GNU Lesser General Public License, either version 3 *
* of the License, or (at your option) any later version. *
* *
$step = $this;
$callback = function(\TYPO3\Form\Core\Model\FinisherContext $finisherContext) use ($step) {
$step->importSite($finisherContext);
};
$this->closureFinisher = new \TYPO3\Form\Finishers\ClosureFinisher();
$this->closureFinisher->setOption('closure', $callback);
$paths = explode(PATH_SEPARATOR, getenv('PATH'));
foreach ($paths as $path) {
$phpExecutable = $path . DIRECTORY_SEPARATOR . 'php' . (isset($_SERVER['WINDIR']) ? '.exe' : '');
if (file_exists($phpExecutable) && is_file($phpExecutable)) {
exec(escapeshellarg($phpExecutable) . ' -v', $phpVersion);
if (substr(array_shift($phpVersion), 0, strlen('PHP ' . PHP_VERSION)) === 'PHP ' . PHP_VERSION) {
echo $phpExecutable;
}
}
}
t3lib_div::loadTCA('fe_users');
// Disable tx_extbase_type from being used by extbase as the frontend users & frontend groups required type field
unset($TCA['fe_users']['columns']['tx_extbase_type']);
unset($TCA['fe_users']['ctrl']['type']);
unset($TCA['fe_groups']['columns']['tx_extbase_type']);
unset($TCA['fe_groups']['ctrl']['type']);
try {
broken();
} catch(\MyFirstException $e) {
echo $e->getMessage();
} catch(\MySecondException $e) {
echo $e->getMessage();
} catch {\Exception $e) {
echo $e->getMessage();
}