import { ActionMetadata } from './ActionMetadata' ; import { SocketControllerMetadataArgs } from './args/SocketControllerMetadataArgs' ; import { getFromContainer } from '../container' ; export class ControllerMetadata { /**
     * Controller actions.
     */ actions : ActionMetadata [ ] ; /**
     * Indicates object which is used by this controller.
     */ target : Function ; /**
     * Base route for all actions registered in this controller.
     */ namespace : string | RegExp ; constructor ( args ) { this . target = args . target ; this . namespace = args . namespace ; } get instance ( ) : any { return getFromContainer ( this . target ) ; } }