src/Di/ServiceProvider.php
public function getNames()
    {
        $names = array_keys($this->getServices());
        $len = strlen(self::METHOD_PREFIX);
        foreach (get_class_methods($this) as $method) {
            if (Text::startsWith($method, self::METHOD_PREFIX)) {
                $name = lcfirst(substr($method, $len));
                if ($name) {
                    $names[] = $name;
                }
            }
        }
        return $names;
    }
public function getNames()
    {
        $names = array_keys($this->getServices());
        $len = strlen(self::METHOD_PREFIX);
        foreach (get_class_methods($this) as $method) {
            if (Text::startsWith($method, self::METHOD_PREFIX)) {
                $name = lcfirst(substr($method, $len));
                if ($name) {
                    $names[] = $name;
                }
            }
        }
        return $names;
    }
public function getNames ( ) { $ names = array_keys ( $ this -> getServices ( ) ) ; $ len = strlen ( self :: METHOD_PREFIX ) ; foreach ( get_class_methods ( $ this ) as $ method ) { if ( Text :: startsWith ( $ method , self :: METHOD_PREFIX ) ) { $ name = lcfirst ( substr ( $ method , $ len ) ) ; if ( $ name ) { $ names [ ] = $ name ; } } } return $ names ; }
Gets all service names
Gets all service names