-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7405 from magento-arcticfoxes/B2B-2148
B2B-2148: Can no longer install when my database name has a dash in it
- Loading branch information
Showing
4 changed files
with
118 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
lib/internal/Magento/Framework/App/Utility/ReflectionClassFactory.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Magento\Framework\App\Utility; | ||
|
||
use ReflectionClass; | ||
use ReflectionException; | ||
|
||
/** | ||
* Factory for \ReflectionClass | ||
*/ | ||
class ReflectionClassFactory | ||
{ | ||
/** | ||
* Create a reflection class object | ||
* | ||
* @param object|string $objectOrClass | ||
* | ||
* @return ReflectionClass | ||
* @throws ReflectionException | ||
*/ | ||
public function create($objectOrClass): ReflectionClass | ||
{ | ||
return new ReflectionClass($objectOrClass); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters