Skip to content

Commit b6c8d7f

Browse files
committed
Merge remote-tracking branch 'remotes/dev/master'
2 parents 25b25ed + 97a8424 commit b6c8d7f

File tree

8 files changed

+75
-40
lines changed

8 files changed

+75
-40
lines changed

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
CHANGELOG for 1.0.0-rc2
2+
===================
3+
This changelog references the relevant changes (new features, changes and bugs) done in 1.0.0-rc2 versions.
4+
5+
* 1.0.0-rc2 (2014-01-30)
6+
* Package management
7+
* Translations management
8+
* FontAwesome web-application icons
9+
110
CHANGELOG for 1.0.0-rc1
211
===================
312
This changelog references the relevant changes (new features, changes and bugs) done in 1.0.0-rc1 versions.

app/DistributionKernel.php

+13
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ public function registerBundles()
1515
new \Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
1616
new \Symfony\Bundle\TwigBundle\TwigBundle(),
1717
new \Symfony\Bundle\AsseticBundle\AsseticBundle(),
18+
new \Symfony\Bundle\MonologBundle\MonologBundle(),
1819
new Oro\Bundle\DistributionBundle\OroDistributionBundle(),
1920
new \Symfony\Bundle\SecurityBundle\SecurityBundle(),
2021
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
22+
new \Oro\Bundle\HelpBundle\OroHelpBundle(),
2123
);
2224

2325
if (in_array($this->getEnvironment(), array('dev'))) {
@@ -37,6 +39,17 @@ public function getCacheDir()
3739
return $this->rootDir . '/cache/dist/' . $this->environment;
3840
}
3941

42+
/**
43+
* {@inheritdoc}
44+
*
45+
* @api
46+
*/
47+
public function getLogDir()
48+
{
49+
return $this->rootDir.'/logs/dist';
50+
}
51+
52+
4053
/**
4154
* {@inheritdoc}
4255
*/

app/OroRequirements.php

+28-24
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ public function __construct()
2222
$nodeExists = new ProcessBuilder(array('node', '--version'));
2323
$nodeExists = $nodeExists->getProcess();
2424

25+
if (isset($_SERVER['PATH'])) {
26+
$nodeExists->setEnv(['PATH' => $_SERVER['PATH']]);
27+
}
2528
$nodeExists->run();
2629
while ($nodeExists->isRunning()) {
2730
// waiting for process to finish
@@ -112,24 +115,6 @@ function ($cfgValue) use ($mem) {
112115
'Install the <strong>NodeJS</strong>.'
113116
);
114117

115-
$this->addOroRequirement(
116-
is_writable($baseDir . '/app/cache'),
117-
'app/cache/ directory must be writable',
118-
'Change the permissions of the "<strong>app/cache/</strong>" directory so that the web server can write into it.'
119-
);
120-
121-
$this->addOroRequirement(
122-
is_writable($baseDir . '/app/logs'),
123-
'app/logs/ directory must be writable',
124-
'Change the permissions of the "<strong>app/logs/</strong>" directory so that the web server can write into it.'
125-
);
126-
127-
$this->addOroRequirement(
128-
is_writable($baseDir . '/app/emails'),
129-
'app/emails/ directory must be writable',
130-
'Change the permissions of the "<strong>app/emails/</strong>" directory so that the web server can write into it.'
131-
);
132-
133118
$this->addOroRequirement(
134119
is_writable($baseDir . '/web/uploads'),
135120
'web/uploads/ directory must be writable',
@@ -142,13 +127,32 @@ function ($cfgValue) use ($mem) {
142127
'Change the permissions of the "<strong>web/bundles/</strong>" directory so that the web server can write into it.'
143128
);
144129

145-
$this->addOroRequirement(
146-
is_writable($baseDir . '/web'),
147-
'web directory must be writable',
148-
'Change the permissions of the "<strong>web</strong>" directory so that the web server can write into it.'
149-
);
150-
}
130+
131+
if (is_dir($baseDir . '/web/js')) {
132+
$this->addOroRequirement(
133+
is_writable($baseDir . '/web/js'),
134+
'web/js directory must be writable',
135+
'Change the permissions of the "<strong>web/js</strong>" directory so that the web server can write into it.'
136+
);
137+
}
151138

139+
if (is_dir($baseDir . '/web/css')) {
140+
$this->addOroRequirement(
141+
is_writable($baseDir . '/web/css'),
142+
'web/css directory must be writable',
143+
'Change the permissions of the "<strong>web/css</strong>" directory so that the web server can write into it.'
144+
);
145+
}
146+
147+
if (!is_dir($baseDir . '/web/css') || !is_dir($baseDir . '/web/js')) {
148+
$this->addOroRequirement(
149+
is_writable($baseDir . '/web'),
150+
'web directory must be writable',
151+
'Change the permissions of the "<strong>web</strong>" directory so that the web server can write into it.'
152+
);
153+
}
154+
155+
}
152156

153157
/**
154158
* Adds an Oro specific requirement.

app/config/dist/config.yml

+16
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,19 @@ services:
6767
class: Twig_Extensions_Extension_Intl
6868
tags:
6969
- { name: twig.extension }
70+
71+
oro_help:
72+
defaults:
73+
server: http://help.orocrm.com/
74+
prefix: Third_Party
75+
vendors:
76+
Oro:
77+
prefix: ~
78+
alias: Platform
79+
80+
monolog:
81+
handlers:
82+
oro_distribution:
83+
type: stream
84+
path: %kernel.logs_dir%/%kernel.environment%.distribution.log
85+
channels: oro_distribution

app/config/dist/config_test.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
imports:
2+
- { resource: config.yml }

app/emails/.gitignore

-1
This file was deleted.

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55
"license": "MIT",
66
"autoload": {
77
"psr-0": {
8-
"": "src/",
9-
"OroEmail\\": "app/emails"
8+
"": "src/"
109
}
1110
},
1211
"require": {
13-
"oro/platform": "1.0.0-rc1",
12+
"oro/platform": "1.0.0-rc2",
1413
"escapestudios/wsse-authentication-bundle": "2.3.x-dev#ac3f700a88966e6483ff84d5de2b751d7622736d"
1514
},
1615
"scripts": {
@@ -28,6 +27,7 @@
2827
]
2928
},
3029
"minimum-stability": "dev",
30+
"prefer-stable": true,
3131
"extra": {
3232
"symfony-app-dir": "app",
3333
"symfony-web-dir": "web",

web/install.php

+4-12
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,10 @@
77
use Symfony\Component\Translation\Translator;
88
use Symfony\Component\Translation\Loader\YamlFileLoader;
99
use Symfony\Component\Yaml\Yaml;
10-
11-
//todo: uncomment this then package installer will be completed
12-
//use Symfony\Component\HttpFoundation\Request;
10+
use Symfony\Component\HttpFoundation\Request;
1311

1412
require_once __DIR__ . '/../app/OroRequirements.php';
15-
//todo: uncomment this then package installer will be completed
16-
//require_once __DIR__ . '/../app/autoload.php';
17-
//todo: delete this then package installer will be completed
18-
require_once __DIR__ . '/../vendor/autoload.php';
13+
require_once __DIR__ . '/../app/autoload.php';
1914

2015
// check for installed system
2116
$paramFile = __DIR__ . '/../app/config/parameters.yml';
@@ -28,17 +23,14 @@
2823
&& isset($data['parameters']['installed'])
2924
&& false != $data['parameters']['installed']
3025
) {
31-
//todo: delete this then package installer will be completed
32-
header('Location: /');
33-
//todo: uncomment this then package installer will be completed
34-
/*require_once __DIR__.'/../app/DistributionKernel.php';
26+
require_once __DIR__.'/../app/DistributionKernel.php';
3527

3628
$kernel = new DistributionKernel('prod', false);
3729
$kernel->loadClassCache();
3830
$request = Request::createFromGlobals();
3931
$response = $kernel->handle($request);
4032
$response->send();
41-
$kernel->terminate($request, $response);*/
33+
$kernel->terminate($request, $response);
4234

4335
exit;
4436
}

0 commit comments

Comments
 (0)