Permalink
Browse files

Merge pull request #53 from webimpress/improvement/import-internals

Import internal PHP functions

Conflicts:
	src/ComponentInstaller.php
  • Loading branch information...
weierophinney committed Mar 21, 2018
2 parents 51c778b + 593a2ef commit 159df05dad7fed0f8e1eef8626d3ea98a7286e12
View
@@ -15,6 +15,15 @@
use OutOfRangeException;
use Traversable;
use function array_key_exists;
use function array_merge;
use function array_unique;
use function array_unshift;
use function count;
use function is_array;
use function iterator_to_array;
use function sprintf;
class Collection implements
ArrayAccess,
Countable,
View
@@ -19,6 +19,29 @@
use Zend\ComponentInstaller\Injector\ConfigInjectorChain;
use Zend\ComponentInstaller\Injector\InjectorInterface;
use function array_filter;
use function array_flip;
use function array_keys;
use function array_map;
use function array_unshift;
use function explode;
use function file_exists;
use function file_get_contents;
use function implode;
use function in_array;
use function is_array;
use function is_dir;
use function is_numeric;
use function is_string;
use function preg_match;
use function preg_replace;
use function rtrim;
use function sprintf;
use function str_replace;
use function stripslashes;
use function strtolower;
use function substr;
/**
* If a package represents a component module, update the application configuration.
*
View
@@ -7,6 +7,8 @@
namespace Zend\ComponentInstaller;
use function is_array;
class ConfigDiscovery
{
/**
@@ -7,6 +7,12 @@
namespace Zend\ComponentInstaller\ConfigDiscovery;
use function file_get_contents;
use function is_dir;
use function is_file;
use function preg_match;
use function sprintf;
abstract class AbstractDiscovery implements DiscoveryInterface
{
/**
@@ -7,6 +7,9 @@
namespace Zend\ComponentInstaller\ConfigDiscovery;
use function preg_quote;
use function sprintf;
class ConfigAggregator extends AbstractDiscovery
{
/**
@@ -7,6 +7,9 @@
namespace Zend\ComponentInstaller\ConfigDiscovery;
use function preg_quote;
use function sprintf;
class ExpressiveConfig extends AbstractDiscovery
{
/**
@@ -9,6 +9,19 @@
use Zend\ComponentInstaller\Exception;
use function addslashes;
use function count;
use function file_get_contents;
use function file_put_contents;
use function in_array;
use function is_string;
use function preg_match;
use function preg_quote;
use function preg_replace;
use function reset;
use function sprintf;
use function strlen;
abstract class AbstractInjector implements InjectorInterface
{
/**
@@ -7,6 +7,8 @@
namespace Zend\ComponentInstaller\Injector;
use function str_replace;
trait ConditionalDiscoveryTrait
{
/**
@@ -9,6 +9,9 @@
use Zend\ComponentInstaller\ConfigDiscovery\ConfigAggregator as ConfigAggregatorDiscovery;
use function preg_quote;
use function sprintf;
class ConfigAggregatorInjector extends AbstractInjector
{
use ConditionalDiscoveryTrait;
@@ -10,6 +10,8 @@
use Zend\ComponentInstaller\Collection;
use Zend\ComponentInstaller\ConfigDiscovery\DiscoveryChainInterface;
use function in_array;
class ConfigInjectorChain implements InjectorInterface
{
/**
@@ -9,6 +9,9 @@
use Zend\ComponentInstaller\ConfigDiscovery\ExpressiveConfig as ExpressiveConfigDiscovery;
use function preg_quote;
use function sprintf;
class ExpressiveConfigInjector extends AbstractInjector
{
use ConditionalDiscoveryTrait;
@@ -22,6 +22,16 @@
use ReflectionObject;
use Zend\ComponentInstaller\ComponentInstaller;
use function dirname;
use function file_get_contents;
use function implode;
use function is_array;
use function mkdir;
use function preg_match;
use function sprintf;
use function strpos;
use function strstr;
class ComponentInstallerTest extends TestCase
{
/**
@@ -18,6 +18,12 @@
use Zend\ComponentInstaller\Injector\InjectorInterface;
use Zend\ComponentInstaller\Injector\NoopInjector;
use function array_shift;
use function get_class;
use function gettype;
use function is_object;
use function sprintf;
class ConfigDiscoveryTest extends TestCase
{
/** @var vfsStreamDirectory */
@@ -12,6 +12,8 @@
use PHPUnit\Framework\TestCase;
use Zend\ComponentInstaller\Injector\AbstractInjector;
use function file_get_contents;
abstract class AbstractInjectorTestCase extends TestCase
{
/** @var vfsStreamDirectory */
@@ -10,6 +10,9 @@
use org\bovigo\vfs\vfsStream;
use Zend\ComponentInstaller\Injector\ConfigAggregatorInjector;
use function file_get_contents;
use function preg_replace;
class ConfigAggregatorInjectorTest extends AbstractInjectorTestCase
{
/** @var string */
@@ -9,6 +9,8 @@
use Zend\ComponentInstaller\Injector\ExpressiveConfigInjector;
use function preg_replace;
class ExpressiveConfigInjectorTest extends AbstractInjectorTestCase
{
/** @var string */

0 comments on commit 159df05

Please sign in to comment.