Skip to content

Commit

Permalink
Merge branch '4.4' into 4.9
Browse files Browse the repository at this point in the history
# Conflicts:
#	core-bundle/src/Resources/contao/library/Contao/System.php
  • Loading branch information
leofeyer committed Jul 26, 2020
2 parents 2026082 + ba9ea6c commit 87cc286
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions core-bundle/src/Resources/contao/library/Contao/System.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ protected function import($strClass, $strKey=null, $blnForce=false)
{
throw new ServiceNotFoundException($strClass, null, null, array(), sprintf('The "%s" service or alias has been removed or inlined when the container was compiled. You should either make it public, or stop using the container directly and use dependency injection instead.', $strClass));
}
elseif (!class_exists($strClass))
{
throw new \RuntimeException('System::import() failed because class "' . $strClass . '" is not a valid class name or does not exist.');
}
elseif (\in_array('getInstance', get_class_methods($strClass)))
{
static::$arrStaticObjects[$strKey] = static::$arrSingletons[$strKey] = $this->arrObjects[$strKey] = \call_user_func(array($strClass, 'getInstance'));
Expand Down Expand Up @@ -239,6 +243,10 @@ public static function importStatic($strClass, $strKey=null, $blnForce=false)
{
throw new ServiceNotFoundException($strClass, null, null, array(), sprintf('The "%s" service or alias has been removed or inlined when the container was compiled. You should either make it public, or stop using the container directly and use dependency injection instead.', $strClass));
}
elseif (!class_exists($strClass))
{
throw new \RuntimeException('System::importStatic() failed because class "' . $strClass . '" is not a valid class name or does not exist.');
}
elseif (\in_array('getInstance', get_class_methods($strClass)))
{
static::$arrStaticObjects[$strKey] = static::$arrSingletons[$strKey] = \call_user_func(array($strClass, 'getInstance'));
Expand Down
2 changes: 1 addition & 1 deletion faq-bundle/src/Resources/contao/dca/tl_user.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
->applyToPalette('custom', 'tl_user')
;

// Add fields to tl_user_group
// Add fields to tl_user
$GLOBALS['TL_DCA']['tl_user']['fields']['faqs'] = array
(
'exclude' => true,
Expand Down
2 changes: 1 addition & 1 deletion news-bundle/src/Resources/contao/dca/tl_user.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
->applyToPalette('custom', 'tl_user')
;

// Add fields to tl_user_group
// Add fields to tl_user
$GLOBALS['TL_DCA']['tl_user']['fields']['news'] = array
(
'exclude' => true,
Expand Down
2 changes: 1 addition & 1 deletion newsletter-bundle/src/Resources/contao/dca/tl_user.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
->applyToPalette('custom', 'tl_user')
;

// Add fields to tl_user_group
// Add fields to tl_user
$GLOBALS['TL_DCA']['tl_user']['fields']['newsletters'] = array
(
'exclude' => true,
Expand Down

0 comments on commit 87cc286

Please sign in to comment.