utiliser stdmessenger

This commit is contained in:
Jephté Clain 2024-05-03 10:17:23 +04:00
parent eb167d431c
commit 5fa5f718d2
6 changed files with 10 additions and 10 deletions

View File

@ -10,7 +10,7 @@ use nur\b\ValueException;
use nur\data\types\md_utils;
use nur\data\types\Metadata;
use nur\iter;
use nur\log;
use nur\sery\output\msg;
class LdapSearch extends Parametrable implements IteratorAggregate {
use Tparametrable;
@ -148,7 +148,7 @@ class LdapSearch extends Parametrable implements IteratorAggregate {
$this->ppDeref,
$this->ppControls,
]);
log::debug("Searching searchbase=$args[1] filter=$args[2]");
msg::debug("Searching searchbase=$args[1] filter=$args[2]");
$scope = $this->scope;
if ($scope == self::SCOPE_SUBTREE) $rr = @ldap_search(...$args);

View File

@ -3,7 +3,7 @@ namespace nur\ldap\app;
use nur\ldap\LdapSearch;
use nur\ldap\LdapWalker;
use nur\log;
use nur\sery\output\msg;
class LdapDeleteApp extends LdapApplication {
const ARGS = [
@ -27,9 +27,9 @@ class LdapDeleteApp extends LdapApplication {
/** @var LdapWalker $lo */
$lo = $conn->search(null, $params);
while ($lo->next($first)) {
log::action("Suppression $lo[dn]");
msg::action("Suppression $lo[dn]");
$lo->delete();
log::asuccess();
msg::asuccess();
}
}
}

View File

@ -4,8 +4,8 @@ namespace nur\ldap;
use nur\A;
use nur\b\ValueException;
use nur\config;
use nur\log;
use nur\path;
use nur\sery\output\msg;
use nur\SL;
abstract class ldap_server {
@ -52,7 +52,7 @@ abstract class ldap_server {
static function conn(?array $config=null, ?string $profile=null): LdapConn {
if ($profile === null) $profile = self::get_profile();
$name = self::name();
log::debug("Profil $name: $profile");
msg::debug("Profil $name: $profile");
$configFile = static::fix_path(ldap_config::get_file($name, $profile));
if (!file_exists($configFile)) {
$configname = path::filename($configFile);

View File

@ -1,7 +1,7 @@
<?php
namespace nur\ldap\schemas;
use nur\log;
use nur\sery\output\log;
class LseAttribute extends LseParser {
protected $data;

View File

@ -1,7 +1,7 @@
<?php
namespace nur\ldap\schemas;
use nur\log;
use nur\sery\output\log;
class LseObjectClass extends LseParser {
const BOOL_ATTRS = [];

View File

@ -1,7 +1,7 @@
<?php
namespace nur\ldap\schemas;
use nur\log;
use nur\sery\output\log;
class LseSyntax extends LseParser {
const BOOL_ATTRS = [