I'm developing a socket listener that has to process data with CommandService class.
CommandService.php
<?php
namespace Application\Service;
use Zend\ServiceManager\ServiceLocatorAwareInterface;
use Zend\ServiceManager\ServiceLocatorAwareTrait;
class CommandService implements ServiceLocatorAwareInterface
{
use ServiceLocatorAwareTrait;
}
custom.php
<?php
include('../module/Application/src/Application/Service/CommandService.php');
?>
And when I run on console
php custom.php
I get error: Fatal error: Interface 'Zend\ServiceManager\ServiceLocatorAwareInterface' not found in C:\wamp\www utirent\module\Application\src\Application\Service\CommandService.php on line 7
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.