-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
381 additions
and
413 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,66 @@ | ||
local cache_decorator = require 'laravel.resolvers.cache.decorator' | ||
local cache_decorator = require "laravel.resolvers.cache.decorator" | ||
|
||
return { | ||
routes = { | ||
---@param onSuccess fun(routes: Route[])|nil | ||
---@param onFailure fun(errorMessage: string)|nil | ||
resolve = function( | ||
onSuccess, | ||
onFailure | ||
) | ||
return cache_decorator({ | ||
decorated = require 'laravel.resolvers.routes_resolver', | ||
key = 'routes', | ||
resolve = function(onSuccess, onFailure) | ||
return cache_decorator { | ||
decorated = require "laravel.resolvers.routes_resolver", | ||
key = "routes", | ||
onSuccess = onSuccess, | ||
onFailure = onFailure, | ||
}) | ||
end | ||
} | ||
end, | ||
}, | ||
commands = { | ||
---@param onSuccess fun(commands: Command[])|nil | ||
---@param onFailure fun(errorMessage: string)|nil | ||
resolve = function( | ||
onSuccess, | ||
onFailure | ||
) | ||
return cache_decorator({ | ||
decorated = require 'laravel.resolvers.commands_resolver', | ||
key = 'commands', | ||
resolve = function(onSuccess, onFailure) | ||
return cache_decorator { | ||
decorated = require "laravel.resolvers.commands_resolver", | ||
key = "commands", | ||
onSuccess = onSuccess, | ||
onFailure = onFailure, | ||
}) | ||
end | ||
} | ||
end, | ||
}, | ||
views = { | ||
---@param onSuccess fun(views: View[])|nil | ||
---@param onFailure fun(errorMessage: string)|nil | ||
resolve = function( | ||
onSuccess, | ||
onFailure | ||
) | ||
return cache_decorator({ | ||
decorated = require 'laravel.resolvers.views_resolver', | ||
key = 'views', | ||
resolve = function(onSuccess, onFailure) | ||
return cache_decorator { | ||
decorated = require "laravel.resolvers.views_resolver", | ||
key = "views", | ||
onSuccess = onSuccess, | ||
onFailure = onFailure, | ||
}) | ||
end | ||
} | ||
end, | ||
}, | ||
configs = { | ||
---@param onSuccess fun(config: Config)|nil | ||
---@param onFailure fun(errorMessage: string)|nil | ||
resolve = function( | ||
onSuccess, | ||
onFailure | ||
) | ||
return cache_decorator({ | ||
decorated = require 'laravel.resolvers.configs_resolver', | ||
key = 'configs', | ||
resolve = function(onSuccess, onFailure) | ||
return cache_decorator { | ||
decorated = require "laravel.resolvers.configs_resolver", | ||
key = "configs", | ||
onSuccess = onSuccess, | ||
onFailure = onFailure, | ||
}) | ||
end | ||
} | ||
end, | ||
}, | ||
paths = { | ||
---@param resource string | ||
---@param onSuccess fun(path: string)|nil | ||
---@param onFailure fun(errorMessage: string)|nil | ||
resolve = function( | ||
resource, | ||
onSuccess, | ||
onFailure | ||
) | ||
return cache_decorator({ | ||
decorated = require 'laravel.resolvers.resource_path_resolver', | ||
key = 'paths_' .. resource, | ||
resolve = function(resource, onSuccess, onFailure) | ||
return cache_decorator { | ||
decorated = require "laravel.resolvers.resource_path_resolver", | ||
key = "paths_" .. resource, | ||
onSuccess = onSuccess, | ||
onFailure = onFailure, | ||
args = {resource} | ||
}) | ||
end | ||
args = { resource }, | ||
} | ||
end, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.