Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F32057602
WithConfiguration.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
767 B
Referenced Files
None
Subscribers
None
WithConfiguration.php
View Options
<?php
namespace
Nasqueron\Notifications\Tests\Analyzers\Phabricator
;
use
Nasqueron\Notifications\Analyzers\Phabricator\PhabricatorPayloadAnalyzerConfiguration
;
use
Nasqueron\Notifications\Phabricator\PhabricatorStory
;
/**
* Helper methods to construct needed objects
*/
trait
WithConfiguration
{
private
function
getPhabricatorPayloadAnalyzerConfiguration
()
{
$filename
=
__DIR__
.
'/../../data/PhabricatorPayloadAnalyzer/Nasqueron.json'
;
$mapper
=
new
\JsonMapper
();
return
$mapper
->
map
(
json_decode
(
file_get_contents
(
$filename
)),
new
PhabricatorPayloadAnalyzerConfiguration
(
'Nasqueron'
)
);
}
private
function
getStory
()
{
return
new
PhabricatorStory
(
"https://phab.acme"
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jun 8, 07:47 (1 d, 2 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3755119
Default Alt Text
WithConfiguration.php (767 B)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment