function AssetRoutes::__construct
Constructs an asset routes object.
Parameters
\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $streamWrapperManager: The stream wrapper manager service.
File
- 
              core/
modules/ system/ src/ Routing/ AssetRoutes.php, line 21  
Class
- AssetRoutes
 - Defines a routes' callback to register a URL for serving assets.
 
Namespace
Drupal\system\RoutingCode
public function __construct(protected readonly StreamWrapperManagerInterface $streamWrapperManager) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.