src/Manager.php
protected function autoIncludeParents()
    {
        $parsed = [];

        foreach ($this->requestedIncludes as $include) {
            $nested = explode('.', $include);

            $part = array_shift($nested);
            $parsed[] = $part;

            while (count($nested) > 0) {
                $part .= '.'.array_shift($nested);
                $parsed[] = $part;
            }
        }

        $this->requestedIncludes = array_values(array_unique($parsed));
    }
protected function autoIncludeParents()
    {
        $parsed = [];

        foreach ($this->requestedIncludes as $include) {
            $nested = explode('.', $include);

            $part = array_shift($nested);
            $parsed[] = $part;

            while (count($nested) > 0) {
                $part .= '.'.array_shift($nested);
                $parsed[] = $part;
            }
        }

        $this->requestedIncludes = array_values(array_unique($parsed));
    }
protected function autoIncludeParents ( ) { $ parsed = [ ] ; foreach ( $ this -> requestedIncludes as $ include ) { $ nested = explode ( '.' , $ include ) ; $ part = array_shift ( $ nested ) ; $ parsed [ ] = $ part ; while ( count ( $ nested ) > 0 ) { $ part .= '.' . array_shift ( $ nested ) ; $ parsed [ ] = $ part ; } } $ this -> requestedIncludes = array_values ( array_unique ( $ parsed ) ) ; }
Auto-include Parents

Look at the requested includes and automatically include the parents if they
are not explicitly requested. E.g: [foo, bar.baz] becomes [foo, bar, bar.baz]

@internal

@return void
Auto - include Parents