Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Paste
P31
CelerityStuffFromExtensions
Active
Public
Actions
Authored by
avivey
on Feb 12 2024, 19:45.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Tags
None
Referenced Files
F1361101: CelerityStuffFromExtensions
Feb 12 2024, 19:45
2024-02-12 19:45:01 (UTC+0)
Subscribers
None
<?php
final
class
CelerityStuffFromExtensions
extends
CelerityResourcesOnDisk
{
private
$map
;
public
function
getName
(
)
{
return
'src-extensions'
;
}
public
function
getPathToResources
(
)
{
return
__DIR__
.
'/rsrc'
;
}
public
function
getPathToMap
(
)
{
// throw new Exception("Generated at runtime");
return
'/dev/null'
;
}
public
function
loadMap
(
)
{
if
(
$this
->
map
===
null
)
{
$generator
=
new
CelerityResourceMapGenerator
(
$this
)
;
$data
=
$generator
->
generate
(
)
;
$this
->
map
=
array
(
'names'
=>
$data
->
getNameMap
(
)
,
'symbols'
=>
$data
->
getSymbolMap
(
)
,
'requires'
=>
$data
->
getRequiresMap
(
)
,
'packages'
=>
$data
->
getPackageMap
(
)
,
)
;
}
return
$this
->
map
;
}
}
Event Timeline
avivey
created this paste.
Feb 12 2024, 19:45
2024-02-12 19:45:01 (UTC+0)
avivey
mentioned this in
T15736: JavaScript modernization (umbrella task)
.
Log In to Comment