Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit c24c7f5

Browse files
committed
Working on logging
1 parent f221df4 commit c24c7f5

File tree

4 files changed

+80
-0
lines changed

4 files changed

+80
-0
lines changed

src/Listeners/LogDiscovery.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
namespace Adldap\Laravel\Listeners;
4+
5+
use Adldap\Laravel\Events\DiscoveredWithCredentials;
6+
7+
class LogDiscovery
8+
{
9+
/**
10+
* Handle the event.
11+
*
12+
* @param DiscoveredWithCredentials $event
13+
*
14+
* @return void
15+
*/
16+
public function handle(DiscoveredWithCredentials $event)
17+
{
18+
info("User {$event->user->getCommonName()} has been successfully found for authentication.");
19+
}
20+
}

src/Listeners/LogImport.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
namespace Adldap\Laravel\Listeners;
4+
5+
use Adldap\Laravel\Events\Importing;
6+
7+
class LogImport
8+
{
9+
/**
10+
* Handle the event.
11+
*
12+
* @param Importing $event
13+
*
14+
* @return void
15+
*/
16+
public function handle(Importing $event)
17+
{
18+
info("User {$event->user->getCommonName()} is being imported.");
19+
}
20+
}

src/Listeners/LogSynchronized.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
namespace Adldap\Laravel\Listeners;
4+
5+
use Adldap\Laravel\Events\Synchronized;
6+
7+
class LogSynchronized
8+
{
9+
/**
10+
* Handle the event.
11+
*
12+
* @param Synchronized $event
13+
*
14+
* @return void
15+
*/
16+
public function handle(Synchronized $event)
17+
{
18+
info("User {$event->user->getCommonName()} has been successfully synchronized.");
19+
}
20+
}

src/Listeners/LogSynchronizing.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
namespace Adldap\Laravel\Listeners;
4+
5+
use Adldap\Laravel\Events\Synchronizing;
6+
7+
class LogSynchronizing
8+
{
9+
/**
10+
* Handle the event.
11+
*
12+
* @param Synchronizing $event
13+
*
14+
* @return void
15+
*/
16+
public function handle(Synchronizing $event)
17+
{
18+
info("User {$event->user->getCommonName()} is being synchronized.");
19+
}
20+
}

0 commit comments

Comments
 (0)