Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace WordPress\Blueprints\DataReference;

use InvalidArgumentException;
use Nette\NotImplementedException;
use VendorPrefix\Nette\NotImplementedException;

class DataReference {

Expand Down
4 changes: 2 additions & 2 deletions components/Blueprints/Logger/class-clilogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace WordPress\Blueprints\Logger;

use Psr\Log\InvalidArgumentException;
use Psr\Log\LoggerInterface;
use VendorPrefix\Psr\Log\InvalidArgumentException;
use VendorPrefix\Psr\Log\LoggerInterface;

class CLILogger implements LoggerInterface {
private $stream;
Expand Down
2 changes: 1 addition & 1 deletion components/Blueprints/Logger/class-nooplogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace WordPress\Blueprints\Logger;

use Psr\Log\LoggerInterface;
use VendorPrefix\Psr\Log\LoggerInterface;

class NoopLogger implements LoggerInterface {
public function emergency( $message, array $context = array() ): void {
Expand Down
2 changes: 1 addition & 1 deletion components/Blueprints/Progress/class-doneevent.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace WordPress\Blueprints\Progress;

use Symfony\Component\EventDispatcher\Event;
use VendorPrefix\Symfony\Component\EventDispatcher\Event;

/**
* Custom event providing progress details.
Expand Down
2 changes: 1 addition & 1 deletion components/Blueprints/Progress/class-progressevent.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace WordPress\Blueprints\Progress;

use Symfony\Component\EventDispatcher\Event;
use VendorPrefix\Symfony\Component\EventDispatcher\Event;

/**
* Event class for tracking progress updates
Expand Down
2 changes: 1 addition & 1 deletion components/Blueprints/Progress/class-tracker.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use InvalidArgumentException;
use LogicException;
use OutOfBoundsException;
use Symfony\Component\EventDispatcher\EventDispatcher;
use VendorPrefix\Symfony\Component\EventDispatcher\EventDispatcher;

use function array_key_exists;
use function array_values;
Expand Down
2 changes: 1 addition & 1 deletion components/Blueprints/Steps/class-enablemultisitestep.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace WordPress\Blueprints\Steps;

use Symfony\Component\Process\Exception\ProcessFailedException;
use VendorPrefix\Symfony\Component\Process\Exception\ProcessFailedException;
use WordPress\Blueprints\Exception\BlueprintExecutionException;
use WordPress\Blueprints\Progress\Tracker;
use WordPress\Blueprints\Runtime;
Expand Down
2 changes: 1 addition & 1 deletion components/Blueprints/Steps/class-importcontentstep.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace WordPress\Blueprints\Steps;

use RuntimeException;
use Symfony\Component\Process\Exception\ProcessFailedException;
use VendorPrefix\Symfony\Component\Process\Exception\ProcessFailedException;
use WordPress\Blueprints\DataReference\File;
use WordPress\Blueprints\Exception\BlueprintExecutionException;
use WordPress\Blueprints\Process;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace WordPress\Blueprints\Versions\Version1;

use Psr\Log\LoggerInterface;
use VendorPrefix\Psr\Log\LoggerInterface;
use WordPress\Blueprints\Exception\BlueprintExecutionException;
use WordPress\Blueprints\Validator\HumanFriendlySchemaValidator;
use WordPress\Blueprints\Validator\ValidationError;
Expand Down
2 changes: 1 addition & 1 deletion components/Blueprints/class-process.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace WordPress\Blueprints;

use Symfony\Component\Process\Process as SymfonyProcess;
use VendorPrefix\Symfony\Component\Process\Process as SymfonyProcess;
use WordPress\ByteStream\ReadStream\BaseByteReadStream;

class Process extends SymfonyProcess {
Expand Down
2 changes: 1 addition & 1 deletion components/Blueprints/class-processfailedexception.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace WordPress\Blueprints;

use Exception;
use Symfony\Component\Process\Process;
use VendorPrefix\Symfony\Component\Process\Process;
use Throwable;

class ProcessFailedException extends Exception {
Expand Down
2 changes: 1 addition & 1 deletion components/Blueprints/class-runnerconfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace WordPress\Blueprints;

use InvalidArgumentException;
use Psr\Log\LoggerInterface;
use VendorPrefix\Psr\Log\LoggerInterface;
use WordPress\Blueprints\DataReference\DataReference;
use WordPress\Blueprints\Logger\NoopLogger;

Expand Down
4 changes: 2 additions & 2 deletions components/Blueprints/class-runtime.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace WordPress\Blueprints;

use Psr\Log\LoggerInterface;
use VendorPrefix\Psr\Log\LoggerInterface;
use WordPress\Blueprints\DataReference\DataReference;
use WordPress\Blueprints\DataReference\DataReferenceResolver;
use WordPress\Blueprints\DataReference\Directory;
Expand Down Expand Up @@ -183,7 +183,7 @@ public function create_temporary_file( ?string $suffix = null ): string {
* @TODO: Useful error messages on process failure. Right now we get this mouthful error message:
*
* FAILED: The command "'php' '/var/folders/sb/cywb...
* Fatal error: Uncaught Symfony\Component\Process\Exception\ProcessFailedException: The command "'php' '/var/folders/sb/cywb762129g3f0jzq1_p2q5h0000gp/T/wp-blueprints-runtime-68290ca22b771/tmp_68290cac6bea8'" failed.
* Fatal error: Uncaught VendorPrefix\Symfony\Component\Process\Exception\ProcessFailedException: The command "'php' '/var/folders/sb/cywb762129g3f0jzq1_p2q5h0000gp/T/wp-blueprints-runtime-68290ca22b771/tmp_68290cac6bea8'" failed.
*
* Exit Code: 255(Unknown error)
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Psr\Log;
namespace VendorPrefix\Psr\Log;

/**
* This is a simple Logger implementation that other Loggers can inherit from.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Psr\Log;
namespace VendorPrefix\Psr\Log;

class InvalidArgumentException extends \InvalidArgumentException
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Psr\Log;
namespace VendorPrefix\Psr\Log;

/**
* Describes log levels.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Psr\Log;
namespace VendorPrefix\Psr\Log;

/**
* Describes a logger-aware instance.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Psr\Log;
namespace VendorPrefix\Psr\Log;

/**
* Basic Implementation of LoggerAwareInterface.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Psr\Log;
namespace VendorPrefix\Psr\Log;

/**
* Describes a logger instance.
Expand Down Expand Up @@ -119,7 +119,7 @@ public function debug($message, array $context = array());
*
* @return void
*
* @throws \Psr\Log\InvalidArgumentException
* @throws \VendorPrefix\Psr\Log\InvalidArgumentException
*/
public function log($level, $message, array $context = array());
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Psr\Log;
namespace VendorPrefix\Psr\Log;

/**
* This is a simple Logger trait that classes unable to extend AbstractLogger
Expand Down Expand Up @@ -136,7 +136,7 @@ public function debug($message, array $context = array())
*
* @return void
*
* @throws \Psr\Log\InvalidArgumentException
* @throws \VendorPrefix\Psr\Log\InvalidArgumentException
*/
abstract public function log($level, $message, array $context = array());
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Psr\Log;
namespace VendorPrefix\Psr\Log;

/**
* This Logger can be used to avoid conditional log calls.
Expand All @@ -21,7 +21,7 @@ class NullLogger extends AbstractLogger
*
* @return void
*
* @throws \Psr\Log\InvalidArgumentException
* @throws \VendorPrefix\Psr\Log\InvalidArgumentException
*/
public function log($level, $message, array $context = array())
{
Expand Down
15 changes: 6 additions & 9 deletions components/Blueprints/vendor-patched/log/README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,25 @@
PSR Log
=======
# PSR Log

This repository holds all interfaces/classes/traits related to
[PSR-3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md).

Note that this is not a logger of its own. It is merely an interface that
describes a logger. See the specification for more details.

Installation
------------
## Installation

```bash
composer require psr/log
```

Usage
-----
## Usage

If you need a logger, you can use the interface like this:

```php
<?php

use Psr\Log\LoggerInterface;
use VendorPrefix\Psr\Log\LoggerInterface;

class Foo
{
Expand All @@ -38,7 +35,7 @@ class Foo
if ($this->logger) {
$this->logger->info('Doing work');
}

try {
$this->doSomethingElse();
} catch (Exception $exception) {
Expand All @@ -53,6 +50,6 @@ class Foo
You can then pick one of the implementations of the interface to get a logger.

If you want to implement the interface, you can require this package and
implement `Psr\Log\LoggerInterface` in your code. Please read the
implement `VendorPrefix\Psr\Log\LoggerInterface` in your code. Please read the
[specification text](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md)
for details.
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
* file that was distributed with this source code.
*/

namespace Symfony\Component\EventDispatcher;
namespace VendorPrefix\Symfony\Component\EventDispatcher;

use InvalidArgumentException;
use PHPUnit_Framework_MockObject_MockObject;
use Prophecy\Doubler\DoubleInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use VendorPrefix\Symfony\Component\DependencyInjection\ContainerInterface;

/**
* Lazily loads listeners and subscribers from the dependency injection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
* file that was distributed with this source code.
*/

namespace Symfony\Component\EventDispatcher\Debug;
namespace VendorPrefix\Symfony\Component\EventDispatcher\Debug;

use Exception;
use Psr\Log\LoggerInterface;
use VendorPrefix\Psr\Log\LoggerInterface;
use SplObjectStorage;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\Stopwatch\Stopwatch;
use VendorPrefix\Symfony\Component\EventDispatcher\Event;
use VendorPrefix\Symfony\Component\EventDispatcher\EventDispatcherInterface;
use VendorPrefix\Symfony\Component\EventDispatcher\EventSubscriberInterface;
use VendorPrefix\Symfony\Component\Stopwatch\Stopwatch;

/**
* Collects some data about event listeners.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
* file that was distributed with this source code.
*/

namespace Symfony\Component\EventDispatcher\Debug;
namespace VendorPrefix\Symfony\Component\EventDispatcher\Debug;

use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use VendorPrefix\Symfony\Component\EventDispatcher\EventDispatcherInterface;

/**
* @author Fabien Potencier <fabien@symfony.com>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
* file that was distributed with this source code.
*/

namespace Symfony\Component\EventDispatcher\Debug;
namespace VendorPrefix\Symfony\Component\EventDispatcher\Debug;

use Closure;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\Stopwatch\Stopwatch;
use Symfony\Component\VarDumper\Caster\ClassStub;
use VendorPrefix\Symfony\Component\EventDispatcher\Event;
use VendorPrefix\Symfony\Component\EventDispatcher\EventDispatcherInterface;
use VendorPrefix\Symfony\Component\Stopwatch\Stopwatch;
use VendorPrefix\Symfony\Component\VarDumper\Caster\ClassStub;

/**
* @author Fabien Potencier <fabien@symfony.com>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
* file that was distributed with this source code.
*/

namespace Symfony\Component\EventDispatcher\DependencyInjection;
namespace VendorPrefix\Symfony\Component\EventDispatcher\DependencyInjection;

use Symfony\Component\DependencyInjection\Argument\ServiceClosureArgument;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use VendorPrefix\Symfony\Component\DependencyInjection\Argument\ServiceClosureArgument;
use VendorPrefix\Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use VendorPrefix\Symfony\Component\DependencyInjection\ContainerBuilder;
use VendorPrefix\Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
use VendorPrefix\Symfony\Component\DependencyInjection\Reference;
use VendorPrefix\Symfony\Component\EventDispatcher\EventDispatcher;
use VendorPrefix\Symfony\Component\EventDispatcher\EventSubscriberInterface;

/**
* Compiler pass to register tagged services for an event dispatcher.
Expand Down Expand Up @@ -95,7 +95,7 @@ public function process( ContainerBuilder $container ) {

// We must assume that the class value has been correctly filled, even if the service is created by a factory
$class = $container->getParameterBag()->resolveValue( $def->getClass() );
$interface = 'Symfony\Component\EventDispatcher\EventSubscriberInterface';
$interface = 'VendorPrefix\Symfony\Component\EventDispatcher\EventSubscriberInterface';

if ( ! is_subclass_of( $class, $interface ) ) {
if ( ! class_exists( $class, false ) ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace Symfony\Component\EventDispatcher;
namespace VendorPrefix\Symfony\Component\EventDispatcher;

/**
* Event is the base class for classes containing event data.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace Symfony\Component\EventDispatcher;
namespace VendorPrefix\Symfony\Component\EventDispatcher;

use Closure;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace Symfony\Component\EventDispatcher;
namespace VendorPrefix\Symfony\Component\EventDispatcher;

/**
* The EventDispatcherInterface is the central point of Symfony's event listener system.
Expand Down
Loading
Loading