Skip to content
This repository was archived by the owner on Feb 21, 2021. It is now read-only.

Commit bbf7368

Browse files
committed
fix namespaces
1 parent 4f9afe7 commit bbf7368

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Console/Installer.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ public static function composer($io, string $package, string $name): void
102102
}
103103

104104
$pkg = 'mixerapi/' . $package;
105-
$ns = "MixerApi\\\\$name\\\\";
106-
$nsTest = "MixerApi\\\\$name\\\\Test\\\\";
105+
$ns = '"MixerApi\\\\' . $name . '\\\\":';
106+
$nsTest = '"MixerApi\\\\' . $name . '\\\\Test\\\\":';
107107

108108
$contents = file_get_contents('composer.json');
109109
$contents = str_replace('mixerapi/plugin', $pkg, $contents);
110-
$contents = str_replace('"MixerApi\\\\"', $ns, $contents);
111-
$contents = str_replace('"MixerApi\\\\Test\\\\"', $ns, $contents);
110+
$contents = str_replace('"MixerApi\\\\":', $ns, $contents);
111+
$contents = str_replace('"MixerApi\\\\Test\\\\":', $nsTest, $contents);
112112

113113
if (!file_put_contents('composer.json', $contents)) {
114114
$io->write("Unable to update contents of your composer.json, check permissions");

0 commit comments

Comments
 (0)