Example #1
0
 /**
  * Build proxy or not
  *
  * @throws \Initially\Rpc\Exception\InitiallyRpcException
  */
 public function buildProxyOrNot()
 {
     if (!Util::existsDirWritable(INITIALLY_RPC_ROOT_PATH)) {
         throw new InitiallyRpcException("rpc framework root dir not to be write");
     }
     if ($this->compareConfigFile()) {
         $services = $this->config->getServices();
         foreach ($services as $service) {
             $this->builder->create($service->getInterface());
         }
     }
 }