Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
Archive
t3o
my.typo3.org
Commits
d9367ef4
Commit
d9367ef4
authored
May 21, 2019
by
Thomas Löffler
Browse files
Instantiate logger
parent
4683cde4
Pipeline
#7046
passed with stages
in 2 minutes and 34 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extensions/t3o_ldap/Classes/Connectors/Ldap.php
View file @
d9367ef4
...
...
@@ -114,6 +114,8 @@ class Ldap implements \Psr\Log\LoggerAwareInterface
$this
->
ldapBindPassword
=
$this
->
extensionConfiguration
[
'ldapBindPassword'
];
$this
->
ldapBaseDnForPasswordChanges
=
trim
(
$this
->
extensionConfiguration
[
'ldapBaseDnForPasswordChanges'
]);
$this
->
logger
=
GeneralUtility
::
makeInstance
(
\
TYPO3\CMS\Core\Log\LogManager
::
class
)
->
getLogger
(
__CLASS__
);
// Connect and bind
try
{
if
(
$this
->
createLdapConnection
())
{
...
...
extensions/t3o_ldap/Classes/Utility/PasswordUpdate.php
View file @
d9367ef4
...
...
@@ -42,6 +42,7 @@ class PasswordUpdate implements \Psr\Log\LoggerAwareInterface
/** @var \T3o\T3oLdap\Connectors\Ldap $ldap */
$ldap
=
GeneralUtility
::
makeInstance
(
\
T3o\T3oLdap\Connectors\Ldap
::
class
);
if
(
$ldap
->
setLdapPasswords
(
$username
,
$this
->
getHashedPasswords
(
$clearTextPassword
)))
{
$this
->
logger
=
GeneralUtility
::
makeInstance
(
\
TYPO3\CMS\Core\Log\LogManager
::
class
)
->
getLogger
(
__CLASS__
);
$this
->
logger
->
info
(
'Password successfully updated (Mechanisms: '
.
strtoupper
(
implode
(
', '
,
self
::
PASSWORD_METHODS
))
.
')'
);
}
}
...
...
extensions/t3o_slack/Classes/Command/SlackImportCommandController.php
View file @
d9367ef4
...
...
@@ -115,6 +115,7 @@ class SlackImportCommandController extends CommandController implements \Psr\Log
}
}
while
(
$cursor
);
$this
->
logger
=
GeneralUtility
::
makeInstance
(
\
TYPO3\CMS\Core\Log\LogManager
::
class
)
->
getLogger
(
__CLASS__
);
$this
->
logger
->
info
(
'Import of Slack User sucessful - imported '
.
$counter
.
' users'
);
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment