Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modern way of specifying class path #29

Merged
merged 1 commit into from
Feb 16, 2017
Merged

Conversation

NinoSkopac
Copy link
Contributor

No description provided.

@Ocramius Ocramius added this to the 1.0.6 milestone Feb 16, 2017
@Ocramius Ocramius self-assigned this Feb 16, 2017
@Ocramius
Copy link
Member

@NinoSkopac 👍

@Ocramius Ocramius merged commit 5acd2bd into doctrine:master Feb 16, 2017
@@ -27,7 +27,7 @@ itself:
```php
$instantiator = new \Doctrine\Instantiator\Instantiator();

$instance = $instantiator->instantiate('My\\ClassName\\Here');
$instance = $instantiator->instantiate(My\ClassName\Here::class);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing initial \ if you assume that the current file may be namespaced too

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, not a bad idea to add it.

@Ocramius Ocramius modified the milestones: 1.1.0, 1.0.6 Jul 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants