Adds alias

This commit is contained in:
Nuno Maduro
2024-08-10 13:56:40 +01:00
parent ccfd4fd77a
commit 86f46c2efd

View File

@ -44,6 +44,14 @@ final class Configuration
); );
} }
/**
* Depending on where is called, it will extend the given classes and traits globally or locally.
*/
public function extends(string ...$classAndTraits): UsesCall
{
return $this->extend(...$classAndTraits);
}
/** /**
* Depending on where is called, it will add the given groups globally or locally. * Depending on where is called, it will add the given groups globally or locally.
*/ */
@ -60,6 +68,14 @@ final class Configuration
return $this->extend(...$classAndTraits); return $this->extend(...$classAndTraits);
} }
/**
* Depending on where is called, it will extend the given classes and traits globally or locally.
*/
public function uses(string ...$classAndTraits): UsesCall
{
return $this->extends(...$classAndTraits);
}
/** /**
* Gets the theme configuration. * Gets the theme configuration.
*/ */