for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Elgg\Http;
use ElggSite;
/**
* Overview: http://html5doctor.com/web-manifest-specification/
* Spec: https://w3c.github.io/manifest/
*
* Support was added to Chrome 39 and is expected to come to Firefox soon.
* @package Elgg.Core
* @subpackage Http
* @since 1.10
* @access private
*/
class WebAppManifestResource {
/** @var ElggSite */
private $site;
* Constructor
* @param ElggSite $site The site serving this manifest.
public function __construct(ElggSite $site) {
$this->site = $site;
}
* Behavior for HTTP GET method
* @return array
public function get() {
return [
'display' => 'standalone',
'name' => $this->site->getDisplayName(),
'start_url' => $this->site->getUrl(),
];