title: How to include php class that extends an interface
body: <p>I'm developing a socket listener that has to process data with CommandService class.</p>
  
  <p>CommandService.php</p>
  
  <pre><code>&lt;?php
  namespace Application\Service;
  
  use Zend\ServiceManager\ServiceLocatorAwareInterface;
  use Zend\ServiceManager\ServiceLocatorAwareTrait;
  
  class CommandService implements ServiceLocatorAwareInterface
  {
      use ServiceLocatorAwareTrait;
  
  } 
  </code></pre>
  
  <p>custom.php</p>
  
  <pre><code>&lt;?php
  include('../module/Application/src/Application/Service/CommandService.php');
  ?&gt;
  </code></pre>
  
  <p>And when I run on console</p>
  
  <pre><code>php custom.php
  </code></pre>
  
  <p>I get error:
  <em>Fatal error: Interface 'Zend\ServiceManager\ServiceLocatorAwareInterface' not found in C:\wamp\www\nutirent\module\Application\src\Application\Service\CommandService.php on line 7</em></p>
  
  <p>So I't would be great if someone can give me some advice how can I get this running without making custom.php as class.</p>