Skip to content

Commit

Permalink
Fix: missing composer dependancy Psr\Container\ContainerInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-foster-uk committed Jul 28, 2023
1 parent 57d4683 commit d23d48c
Show file tree
Hide file tree
Showing 9 changed files with 108 additions and 5 deletions.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -188,7 +188,6 @@ vendor/phpdocumentor/
vendor/phpmd/
vendor/phpspec/
vendor/phpunit/
vendor/psr/
vendor/sebastian/
vendor/theseer/
vendor/vimeo/
Expand Down
4 changes: 2 additions & 2 deletions vendor/composer/include_paths.php
Expand Up @@ -7,8 +7,8 @@

return array(
$vendorDir . '/pear/console_getopt',
$vendorDir . '/pear/pear_exception',
$vendorDir . '/pear/pear-core-minimal/src',
$vendorDir . '/pear/ole',
$vendorDir . '/pear/pear-core-minimal/src',
$vendorDir . '/pear/pear_exception',
$vendorDir . '/pear/spreadsheet_excel_writer',
);
4 changes: 2 additions & 2 deletions vendor/composer/installed.php
Expand Up @@ -3,7 +3,7 @@
'name' => 'limesurvey/limesurvey',
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '751073b4f2744a7334bfd972163f614bbcb9ba2f',
'reference' => '3ee3a558a71a34da2be44eb4976b05b5bd924acd',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down Expand Up @@ -49,7 +49,7 @@
'limesurvey/limesurvey' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '751073b4f2744a7334bfd972163f614bbcb9ba2f',
'reference' => '3ee3a558a71a34da2be44eb4976b05b5bd924acd',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down
3 changes: 3 additions & 0 deletions vendor/psr/container/.gitignore
@@ -0,0 +1,3 @@
composer.lock
composer.phar
/vendor/
21 changes: 21 additions & 0 deletions vendor/psr/container/LICENSE
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2013-2016 container-interop
Copyright (c) 2016 PHP Framework Interoperability Group

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 changes: 22 additions & 0 deletions vendor/psr/container/composer.json
@@ -0,0 +1,22 @@
{
"name": "psr/container",
"type": "library",
"description": "Common Container Interface (PHP FIG PSR-11)",
"keywords": ["psr", "psr-11", "container", "container-interop", "container-interface"],
"homepage": "https://github.com/php-fig/container",
"license": "MIT",
"authors": [
{
"name": "PHP-FIG",
"homepage": "https://www.php-fig.org/"
}
],
"require": {
"php": ">=7.4.0"
},
"autoload": {
"psr-4": {
"Psr\\Container\\": "src/"
}
}
}
12 changes: 12 additions & 0 deletions vendor/psr/container/src/ContainerExceptionInterface.php
@@ -0,0 +1,12 @@
<?php

namespace Psr\Container;

use Throwable;

/**
* Base interface representing a generic exception in a container.
*/
interface ContainerExceptionInterface extends Throwable
{
}
36 changes: 36 additions & 0 deletions vendor/psr/container/src/ContainerInterface.php
@@ -0,0 +1,36 @@
<?php

declare(strict_types=1);

namespace Psr\Container;

/**
* Describes the interface of a container that exposes methods to read its entries.
*/
interface ContainerInterface
{
/**
* Finds an entry of the container by its identifier and returns it.
*
* @param string $id Identifier of the entry to look for.
*
* @throws NotFoundExceptionInterface No entry was found for **this** identifier.
* @throws ContainerExceptionInterface Error while retrieving the entry.
*
* @return mixed Entry.
*/
public function get(string $id);

/**
* Returns true if the container can return an entry for the given identifier.
* Returns false otherwise.
*
* `has($id)` returning true does not mean that `get($id)` will not throw an exception.
* It does however mean that `get($id)` will not throw a `NotFoundExceptionInterface`.
*
* @param string $id Identifier of the entry to look for.
*
* @return bool
*/
public function has(string $id);
}
10 changes: 10 additions & 0 deletions vendor/psr/container/src/NotFoundExceptionInterface.php
@@ -0,0 +1,10 @@
<?php

namespace Psr\Container;

/**
* No entry was found in the container.
*/
interface NotFoundExceptionInterface extends ContainerExceptionInterface
{
}

0 comments on commit d23d48c

Please sign in to comment.