Pass the template object to the attributes, so we can leverage template rules when rendering attributes

This commit is contained in:
2025-06-18 23:32:47 +10:00
parent 5ce3a63878
commit c4b1d9ec51
20 changed files with 195 additions and 41 deletions

View File

@@ -6,7 +6,7 @@ use Illuminate\Contracts\View\View;
use Illuminate\Support\Collection;
use App\Classes\LDAP\Attribute;
use App\Ldap\Entry;
use App\Classes\Template;
/**
* Represents the RDN for an Entry
@@ -35,7 +35,7 @@ final class RDN extends Attribute
]);
}
public function render(bool $edit=FALSE,bool $old=FALSE,bool $new=FALSE,bool $updated=FALSE,?string $template=NULL): View
public function render(bool $edit=FALSE,bool $old=FALSE,bool $new=FALSE,bool $updated=FALSE,?Template $template=NULL): View
{
return view('components.attribute.rdn')
->with('o',$this);