initial commit

This commit is contained in:
2025-09-30 11:14:10 +02:00
commit 0f8250e702
68 changed files with 9365 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
<?php
namespace Webshr\Core\Exceptions;
use Exception;
use Psr\Container\ContainerExceptionInterface;
class Binding_Resolution_Exception extends Exception implements ContainerExceptionInterface
{
//
}

View File

@@ -0,0 +1,10 @@
<?php
namespace Webshr\Core\Assets\Exceptions;
use Exception;
class Bundle_Not_Found_Exception extends Exception
{
//
}

View File

@@ -0,0 +1,10 @@
<?php
namespace Webshr\Core\Assets\Exceptions;
use Exception;
class Manifest_Not_Found_Exception extends Exception
{
//
}

View File

@@ -0,0 +1,10 @@
<?php
namespace Webshr\Core\Assets\Exceptions;
use Exception;
class Meta_Not_Found_Exception extends Exception
{
//
}

View File

@@ -0,0 +1,60 @@
<?php
namespace Webshr\Core\Assets\Exceptions;
use InvalidArgumentException;
use Throwable;
class Skip_Module_Exception extends InvalidArgumentException
{
/**
* Create a new exception.
*
* @return void
*/
public function __construct(string $message = '', int $code = 0, ?Throwable $previous = null, string $package = '')
{
parent::__construct($message, $code, $previous);
$this->package = $package;
}
/**
* Name of the module's package.
*
* @var string
*/
protected $package;
/**
* Set the name of the module's package.
*
* @return void
*/
public function set_package(string $package)
{
$this->package = $package;
}
/**
* Get the module's package.
*
* @return string
*/
public function package()
{
return $this->package;
}
/**
* Report the exception.
*
* @return array
*/
public function context()
{
return [
'package' => $this->package(),
];
}
}