Skip to content

Commit f2991fc

Browse files
committed
Slightly rework base function
1 parent ac4bd60 commit f2991fc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

source/Composer/Installer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44

55
use Composer\Installer\LibraryInstaller;
66
use Composer\Package\PackageInterface;
7+
use function Pre\Plugin\base;
78

89
require_once __DIR__ . "/../environment.php";
10+
require_once __DIR__ . "/../functions.php";
911

1012
class Installer extends LibraryInstaller
1113
{

source/functions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ function find($file, $iterations = 10, $prefix = __DIR__)
2323

2424
function base()
2525
{
26-
$autoload = find("autoload.php");
27-
return realpath("{$autoload}/../");
26+
$vendor = find("vendor");
27+
return realpath("{$vendor}/../");
2828
}
2929

3030
function defer($code)

0 commit comments

Comments
 (0)