ResolverInterface
        
        The resolver interface defines the methods required for resolving Halcyon datasources.
    
    
 interface Winter\Storm\Halcyon\Datasource\ResolverInterfaceMethods
public addDatasource (string $name, Winter\Storm\Halcyon\Datasource\DatasourceInterface $datasource) : void
Adds a datasource to the resolver.
Parameters
                | Property | Type | Description | 
|---|---|---|
| $name | string | string | 
| $datasource | Winter\Storm\Halcyon\Datasource\DatasourceInterface | Winter\Storm\Halcyon\Datasource\DatasourceInterface | 
Returns
            void
                
            
            
            
                public
            
                        
            datasource ($name = null)
                            : Winter\Storm\Halcyon\Datasource\DatasourceInterface
                    
        
        Get a datasource instance by name.
Parameters
                | Property | Type | Description | 
|---|---|---|
| $name | mixed | mixed | 
Returns
            Winter\Storm\Halcyon\Datasource\DatasourceInterface
                public getDefaultDatasource () : string | null
Gets the default datasource name.
Returns
            string | null
                public hasDatasource (string $name) : bool
Returns if the given datasource name exists.
Parameters
                | Property | Type | Description | 
|---|---|---|
| $name | string | string | 
Returns
            bool
                public setDefaultDatasource (string $name) : void
Sets the default datasource name.
Parameters
                | Property | Type | Description | 
|---|---|---|
| $name | string | string | 
Returns
            void
                Implemented by
| Class | Description | 
|---|---|
| Resolver | 
            
            ← Previous page
            Winter\Storm\Halcyon\Datasource\Resolver
        
                
            Next page →
            Winter\Storm\Halcyon\Exception\CreateDirectoryException
        
    
    Copyright © 2025 Winter CMS