Example #1
0
 public function get($scopeId)
 {
     $scope = $this->scopeTable->get($scopeId);
     if (!empty($scope)) {
         $scope['routes'] = $this->scopeRouteTable->getByScopeId($scope['id']);
         return $scope;
     } else {
         throw new StatusCode\NotFoundException('Could not find scope');
     }
 }