I am working on a library and I have "other" libraries it uses that get included via composer. So in one of my libraries I need to use Buzz so I have
<?php
namespace mynamespace;
use Buzz\Browser,
Buzz\Client\Client;
class Stuff
{
public function stuff()
{
$stuff = new Browser(new Curl());
}
}
Buzz is https://github.com/kriswallsmith/Buzz
But I am getting an error
Class 'mynamespace\Curl' not found
Now I don't seem to grasp why new Browser(new Curl()); is not referencing the Buzz\Browser. If I change it to new \Buzz\Browser(new Buzz\Client\Client()); it works fine. I checked composer, it is all fine and including stuff correctly.