From 4.5, the file app.json will be replaced by Install.php to stored information of your app.
Here is the example structure of Install.php:
Install.php sample
<?php
namespace Apps\PHPfox_Core;
use Core\App;
use Core\App\Install\Setting;
class Install extends App\App
{
protected function setId()
{
$this->id = 'PHPfox_Core';//Set ID for your app. This action is required.
}
protected function setSupportVersion()
{
$this->start_support_version = '4.4.0';//Start support version
$this->end_support_version = '4.5.0';//End support version
}
protected function setAlias()
{
//Set alias for your app
}
protected function setName()
{
$this->name = 'phpFox Core';//Set Name for your app, this name will display in manage apps (admincp)
}
protected function setVersion()
{
$this->version = '4.0.1';//Set version for your app
}
protected function setSettings()
{
//Define settings for your app
}
protected function setUserGroupSettings()
{
//Define user group settings for your app
}
protected function setComponent()
{
//Define component for your app
}
protected function setComponentBlock()
{
//Define component block for your app
}
protected function setPhrase()
{
//Add more phrase for your app. However, for mow please define in phrase.json
}
protected function setOthers()
{
//Set other information for your app
$this->_publisher = 'phpFox'; //Your company name
$this->_publisher_url = 'http://store.phpfox.com/';//Your company website
}
}