Permalink
Browse files

Fixed some install errors

  • Loading branch information...
asiragusa committed Aug 1, 2014
1 parent a195f96 commit 1a7e63a137769899a74da1811fa0a82417db4cd1
View
@@ -0,0 +1,3 @@
{
"directory": "frontend/vendor"
}
@@ -409,20 +409,18 @@ public function __construct()
'Then run "<strong>php composer.phar install</strong>" to install them.'
);
$cacheDir = is_dir(__DIR__.'/../var/cache') ? __DIR__.'/../var/cache' : __DIR__.'/cache';
$baseDir = basename(__DIR__);
$this->addRequirement(
is_writable($cacheDir),
'app/cache/ or var/cache/ directory must be writable',
'Change the permissions of either "<strong>app/cache/</strong>" or "<strong>var/cache/</strong>" directory so that the web server can write into it.'
is_writable(__DIR__.'/cache'),
"$baseDir/cache/ directory must be writable",
"Change the permissions of the \"<strong>$baseDir/cache/</strong>\" directory so that the web server can write into it."
);
$logsDir = is_dir(__DIR__.'/../var/logs') ? __DIR__.'/../var/logs' : __DIR__.'/logs';
$this->addRequirement(
is_writable($logsDir),
'app/logs/ or var/logs/ directory must be writable',
'Change the permissions of either "<strong>app/logs/</strong>" or "<strong>var/logs/</strong>" directory so that the web server can write into it.'
is_writable(__DIR__.'/logs'),
"$baseDir/logs/ directory must be writable",
"Change the permissions of the \"<strong>$baseDir/logs/</strong>\" directory so that the web server can write into it."
);
$this->addPhpIniRequirement(
@@ -602,12 +600,6 @@ function_exists('utf8_decode'),
'Install and enable the <strong>XML</strong> extension.'
);
$this->addRecommendation(
function_exists('filter_var'),
'filter_var() should be available',
'Install and enable the <strong>filter</strong> extension.'
);
if (!defined('PHP_WINDOWS_VERSION_BUILD')) {
$this->addRecommendation(
function_exists('posix_isatty'),
@@ -656,8 +648,6 @@ class_exists('Locale'),
||
(extension_loaded('apc') && ini_get('apc.enabled'))
||
(extension_loaded('Zend Optimizer+') && ini_get('zend_optimizerplus.enable'))
||
(extension_loaded('Zend OPcache') && ini_get('opcache.enable'))
||
(extension_loaded('xcache') && ini_get('xcache.cacher'))
@@ -668,19 +658,9 @@ class_exists('Locale'),
$this->addRecommendation(
$accelerator,
'a PHP accelerator should be installed',
'Install and/or enable a <strong>PHP accelerator</strong> (highly recommended).'
'Install and enable a <strong>PHP accelerator</strong> like APC (highly recommended).'
);
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
$this->addPhpIniRecommendation(
'realpath_cache_size',
create_function('$cfgValue', 'return (int) $cfgValue > 1000;'),
false,
'realpath_cache_size should be above 1024 in php.ini',
'Set "<strong>realpath_cache_size</strong>" to e.g. "<strong>1024</strong>" in php.ini<a href="#phpini">*</a> to improve performance on windows.'
);
}
$this->addPhpIniRecommendation('short_open_tag', false);
$this->addPhpIniRecommendation('magic_quotes_gpc', false, true);
@@ -698,7 +678,7 @@ class_exists('PDO'),
if (class_exists('PDO')) {
$drivers = PDO::getAvailableDrivers();
$this->addRecommendation(
count($drivers) > 0,
count($drivers),
sprintf('PDO should have some drivers installed (currently available: %s)', count($drivers) ? implode(', ', $drivers) : 'none'),
'Install <strong>PDO drivers</strong> (mandatory for Doctrine).'
);
@@ -3,7 +3,7 @@ parameters:
database_driver: pdo_mysql
database_host: 127.0.0.1
database_port: null
database_name: test
database_name: delphine
database_user: root
database_password: null
mailer_transport: smtp
View
@@ -9,6 +9,6 @@ rootComponent:
modelType: testModel
component: testComponent
pageComponent:
testComponent:
className: App.component.Component
template: test
View
@@ -12,7 +12,7 @@ rootModel:
constraints:
min: 1
pageModel:
testModel:
className: App.model.Model
label: Page Model
description: This is the test model
View
@@ -22,6 +22,7 @@
"dependencies": {
"jquery": "~1.11.1",
"modernizr": "~2.8.3",
"respond": "~1.4.2"
"respond": "~1.4.2",
"togu": "*"
}
}
View
@@ -26,45 +26,45 @@
"frontend/vendor/modernizr/modernizr.js",
"frontend/vendor/jquery/dist/jquery.js",
"frontend/togu/Ext_core/Ext.js",
"frontend/togu/Ext_core/Observable.js",
"frontend/togu/core/ioc/DependencyProvider.js",
"frontend/togu/core/ioc/Injector.js",
"frontend/togu/extensions/Ext.more.js",
"frontend/togu/extensions/String.more.js",
"frontend/togu/extensions/jQuery.more.js",
"frontend/togu/extensions/Browser.more.js",
"frontend/togu/core/BaseClass.js",
"frontend/togu/core/History.js",
"frontend/togu/core/model/Model.js",
"frontend/togu/core/ComponentList.js",
"frontend/togu/core/Factory.js",
"frontend/togu/core/ComponentFactory.js",
"frontend/togu/core/ModelFactory.js",
"frontend/togu/core/UpdaterFactory.js",
"frontend/togu/core/Template.js",
"frontend/togu/core/updater/Abstract.js",
"frontend/togu/core/updater/Attr.js",
"frontend/togu/core/updater/Input.js",
"frontend/togu/core/updater/Cls.js",
"frontend/togu/core/updater/Html.js",
"frontend/togu/core/updater/Image.js",
"frontend/togu/core/updater/Link.js",
"frontend/togu/core/updater/Style.js",
"frontend/togu/core/SiteController.js",
"frontend/togu/core/ComponentMgr.js",
"frontend/togu/core/container/Container.js",
"frontend/togu/core/component/Component.js",
"frontend/togu/core/ImageManager.js",
"frontend/togu/core/ResourceMgr.js",
"frontend/togu/core/AlohaManager.js",
"frontend/vendor/togu/Ext_core/Ext.js",
"frontend/vendor/togu/Ext_core/Observable.js",
"frontend/vendor/togu/core/ioc/DependencyProvider.js",
"frontend/vendor/togu/core/ioc/Injector.js",
"frontend/vendor/togu/extensions/Ext.more.js",
"frontend/vendor/togu/extensions/String.more.js",
"frontend/vendor/togu/extensions/jQuery.more.js",
"frontend/vendor/togu/extensions/Browser.more.js",
"frontend/vendor/togu/core/BaseClass.js",
"frontend/vendor/togu/core/History.js",
"frontend/vendor/togu/core/model/Model.js",
"frontend/vendor/togu/core/ComponentList.js",
"frontend/vendor/togu/core/Factory.js",
"frontend/vendor/togu/core/ComponentFactory.js",
"frontend/vendor/togu/core/ModelFactory.js",
"frontend/vendor/togu/core/UpdaterFactory.js",
"frontend/vendor/togu/core/Template.js",
"frontend/vendor/togu/core/updater/Abstract.js",
"frontend/vendor/togu/core/updater/Attr.js",
"frontend/vendor/togu/core/updater/Input.js",
"frontend/vendor/togu/core/updater/Cls.js",
"frontend/vendor/togu/core/updater/Html.js",
"frontend/vendor/togu/core/updater/Image.js",
"frontend/vendor/togu/core/updater/Link.js",
"frontend/vendor/togu/core/updater/Style.js",
"frontend/vendor/togu/core/SiteController.js",
"frontend/vendor/togu/core/ComponentMgr.js",
"frontend/vendor/togu/core/container/Container.js",
"frontend/vendor/togu/core/component/Component.js",
"frontend/vendor/togu/core/ImageManager.js",
"frontend/vendor/togu/core/ResourceMgr.js",
"frontend/vendor/togu/core/AlohaManager.js",
"frontend/compiled/Templates.js",
"frontend/compiled/ComponentTypes.js",
"frontend/compiled/ModelTypes.js",
"frontend/togu/core/SectionMgr.js"
"frontend/vendor/togu/core/SectionMgr.js"
],
"tempDir": ".tmp",
"js": {
@@ -0,0 +1,121 @@
<?php
namespace Application\Togu\ApplicationModelsBundle\Document\App\Generated;
use Doctrine\ODM\PHPCR\Mapping\Annotations as PHPCR;
use Tpg\ExtjsBundle\Annotation as Extjs;
use JMS\Serializer\Annotation as JMS;
use Togu\AnnotationBundle\Annotation as Togu;
use Doctrine\Common\Collections\ArrayCollection;
use Application\Togu\ApplicationModelsBundle\Document\Section;
trait PageModel {
/**
*
* @JMS\Type("string")
* @JMS\SerializedName("text")
* @var string
* @PHPCR\String()
*/
protected $text;
/**
* Set text
*
* @param string $text
* @return Model
*/
public function setText($text)
{
$this->text = $text;
return $this;
}
/**
* Get text
*
* @return string
*/
public function getText()
{
return $this->text;
}
/**
* Initialize text
*
* @return string
*/
public function initText($params)
{
$this->setText(isset($params['text']) ? $params['text'] : 'Togu');
return $this;
}
/**
*
* @JMS\SerializedName("sectionConfig")
* @var Section
* @PHPCR\ReferenceOne(strategy="hard",cascade="all")
*/
protected $sectionConfig;
/**
* Set sectionConfig
*
* @param Section $sectionConfig
* @return Model
*/
public function setSectionConfig($sectionConfig)
{
$this->sectionConfig = $sectionConfig;
if($sectionConfig) {
$sectionConfig->setParentDocument($this);
}
return $this;
}
/**
* Get sectionConfig
*
* @return Section
*/
public function getSectionConfig()
{
return $this->sectionConfig;
}
/**
* Initialize sectionConfig
*
* @return Section
*/
public function initSectionConfig($params)
{
$this->setSectionConfig(
isset($params['sectionConfig']) && $params['sectionConfig'] instanceof \Application\Togu\ApplicationModelsBundle\Document\Section
? $params['sectionConfig']
: new Section());
return $this;
}
/**
* Initialize type
*
* @return
*/
public function initType($params)
{
$this->setType(isset($params['type']) ? $params['type'] : 'pageModel');
return $this;
} /**
* Initializes the Document
*/
public function initialize($params) {
$this->initText($params);
$this->initSectionConfig($params);
$this->initType($params);
}
}
Oops, something went wrong.

0 comments on commit 1a7e63a

Please sign in to comment.