Hyphens in namespaces
mikerockett opened this issue · comments
Upon attempting to create a package called vendor/test-package
, the namespace of Vendor\Test-package
is suggested. When chnged to Vendor\TestPackage
, the service provider and any other class, actually, retains the Test-package
name.
Case in point:
Creating the root folder...
Project root created at: /laravel-packages/packages/vendor/test-package
Collecting package information...
What is your name? [Mike Rockett]:
>
What is the package name? [vendor/test-package]:
>
What is the package description? [Awesome Package]:
>
What is the package license? [MIT]:
>
What is the package min PHP version? [7.0]:
>
What is the package namespace? [Vendor\Test-package]:
> Vendor\TestPackage
Great, confirm the following data before we go ahead!
+---------------------+-----------------+--------------+---------+-----+--------------------+
| name | description | author | license | php | namespace |
+---------------------+-----------------+--------------+---------+-----+--------------------+
| vendor/test-package | Awesome Package | Mike Rockett | MIT | 7.0 | Vendor\TestPackage |
+---------------------+-----------------+--------------+---------+-----+--------------------+
- Service provider:
Test-packageServiceProvider
- All other classes:
Test-package*
But, the namespace is correct.
I will check it out