Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F115449950
DivinerWorkflow.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jun 1, 02:16
Size
699 B
Mime Type
text/x-php
Expires
Tue, Jun 3, 02:16 (2 d)
Engine
blob
Format
Raw Data
Handle
26443481
Attached To
rPH Phabricator
DivinerWorkflow.php
View Options
<?php
abstract
class
DivinerWorkflow
extends
PhutilArgumentWorkflow
{
private
$atomCache
;
public
function
isExecutable
()
{
return
true
;
}
protected
function
getRoot
()
{
return
getcwd
();
}
protected
function
getConfig
(
$key
,
$default
=
null
)
{
return
$default
;
}
protected
function
getAtomCache
()
{
if
(!
$this
->
atomCache
)
{
$cache_directory
=
$this
->
getRoot
().
'/.divinercache'
;
$this
->
atomCache
=
new
DivinerAtomCache
(
$cache_directory
);
}
return
$this
->
atomCache
;
}
protected
function
log
(
$message
)
{
$console
=
PhutilConsole
::
getConsole
();
$console
->
getServer
()->
setEnableLog
(
true
);
$console
->
writeLog
(
$message
.
"
\n
"
);
}
}
Event Timeline
Log In to Comment