Command/ApisearchCommand.php
protected function getEndpoints(InputInterface $input): array
    {
        $endpointsName = $input->getOption('endpoint');
        $endpoints = Endpoints::filter($endpointsName);

        if (count($endpointsName) > count($endpoints)) {
            throw new Exception(sprintf(
                'Endpoint not found. Endpoints available: %s',
                implode(', ', array_keys(Endpoints::all()))
            ));
        }

        return $endpoints;
    }
protected function getEndpoints(InputInterface $input): array
    {
        $endpointsName = $input->getOption('endpoint');
        $endpoints = Endpoints::filter($endpointsName);

        if (count($endpointsName) > count($endpoints)) {
            throw new Exception(sprintf(
                'Endpoint not found. Endpoints available: %s',
                implode(', ', array_keys(Endpoints::all()))
            ));
        }

        return $endpoints;
    }
protected function getEndpoints ( InputInterface $ input ) : array { $ endpointsName = $ input -> getOption ( 'endpoint' ) ; $ endpoints = Endpoints :: filter ( $ endpointsName ) ; if ( count ( $ endpointsName ) > count ( $ endpoints ) ) { throw new Exception ( sprintf ( 'Endpoint not found. Endpoints available: %s' , implode ( ', ' , array_keys ( Endpoints :: all ( ) ) ) ) ) ; } return $ endpoints ; }
Get endpoint compositions given their names.

@param InputInterface $input

@return array

@throws Exception
Get endpoint compositions given their names .