This commit is contained in:
franck
2013-09-02 00:18:29 +02:00
33 changed files with 195 additions and 19 deletions

View File

@@ -11,7 +11,7 @@
"php": ">=5.4", "php": ">=5.4",
"ezyang/htmlpurifier": "dev-master", "ezyang/htmlpurifier": "dev-master",
"ircmaxell/password-compat": "dev-master", "ircmaxell/password-compat": "dev-master",
"propel/propel": "2.0.0-alpha1", "propel/propel": "dev-master",
"psr/log" : "1.0", "psr/log" : "1.0",
"symfony/class-loader": "2.2.*", "symfony/class-loader": "2.2.*",
"symfony/config" : "2.2.*", "symfony/config" : "2.2.*",
@@ -27,7 +27,7 @@
"symfony-cmf/routing": "1.0.0", "symfony-cmf/routing": "1.0.0",
"symfony/form": "2.2.*", "symfony/form": "2.2.*",
"symfony/validator": "2.3.*@dev", "symfony/validator": "2.3.*",
"smarty/smarty": "v3.1.14", "smarty/smarty": "v3.1.14",
"kriswallsmith/assetic": "1.2.*@dev", "kriswallsmith/assetic": "1.2.*@dev",

30
composer.lock generated
View File

@@ -3,7 +3,7 @@
"This file locks the dependencies of your project to a known state", "This file locks the dependencies of your project to a known state",
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file" "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file"
], ],
"hash": "458aeccc06b7394d7653a9063b6fd981", "hash": "050e3da6bd52d5743a46e09992cf67c0",
"packages": [ "packages": [
{ {
"name": "ezyang/htmlpurifier", "name": "ezyang/htmlpurifier",
@@ -254,16 +254,16 @@
}, },
{ {
"name": "propel/propel", "name": "propel/propel",
"version": "2.0.0-alpha1", "version": "dev-master",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/propelorm/Propel2.git", "url": "https://github.com/propelorm/Propel2.git",
"reference": "3b9ea45a6e1b9fb3903cb910a31fbbac4a66c184" "reference": "58a25ded43c3d04313cad2b738342d307988b1b5"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/propelorm/Propel2/zipball/3b9ea45a6e1b9fb3903cb910a31fbbac4a66c184", "url": "https://api.github.com/repos/propelorm/Propel2/zipball/58a25ded43c3d04313cad2b738342d307988b1b5",
"reference": "3b9ea45a6e1b9fb3903cb910a31fbbac4a66c184", "reference": "58a25ded43c3d04313cad2b738342d307988b1b5",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -310,7 +310,7 @@
"orm", "orm",
"persistence" "persistence"
], ],
"time": "2013-06-05 06:46:14" "time": "2013-09-01 13:29:51"
}, },
{ {
"name": "psr/log", "name": "psr/log",
@@ -1066,22 +1066,23 @@
}, },
{ {
"name": "symfony/icu", "name": "symfony/icu",
"version": "v1.0.0", "version": "v1.2.0",
"target-dir": "Symfony/Component/Icu", "target-dir": "Symfony/Component/Icu",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/Icu.git", "url": "https://github.com/symfony/Icu.git",
"reference": "v1.0.0" "reference": "7299cd3d8d6602103d1ebff5d0a9917b7bc6de72"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/Icu/zipball/v1.0.0", "url": "https://api.github.com/repos/symfony/Icu/zipball/7299cd3d8d6602103d1ebff5d0a9917b7bc6de72",
"reference": "v1.0.0", "reference": "7299cd3d8d6602103d1ebff5d0a9917b7bc6de72",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"lib-icu": ">=4.4",
"php": ">=5.3.3", "php": ">=5.3.3",
"symfony/intl": ">=2.3,<3.0" "symfony/intl": "~2.3"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
@@ -1109,7 +1110,7 @@
"icu", "icu",
"intl" "intl"
], ],
"time": "2013-06-03 18:32:07" "time": "2013-06-03 18:32:58"
}, },
{ {
"name": "symfony/intl", "name": "symfony/intl",
@@ -1508,7 +1509,7 @@
}, },
{ {
"name": "symfony/validator", "name": "symfony/validator",
"version": "2.3.x-dev", "version": "v2.3.4",
"target-dir": "Symfony/Component/Validator", "target-dir": "Symfony/Component/Validator",
"source": { "source": {
"type": "git", "type": "git",
@@ -2037,8 +2038,7 @@
"stability-flags": { "stability-flags": {
"ezyang/htmlpurifier": 20, "ezyang/htmlpurifier": 20,
"ircmaxell/password-compat": 20, "ircmaxell/password-compat": 20,
"propel/propel": 15, "propel/propel": 20,
"symfony/validator": 20,
"kriswallsmith/assetic": 20, "kriswallsmith/assetic": 20,
"leafo/lessphp": 20, "leafo/lessphp": 20,
"ptachoire/cssembed": 20, "ptachoire/cssembed": 20,

View File

@@ -41,6 +41,7 @@ use Thelia\Model\ConfigQuery;
* *
* Class Cart * Class Cart
* @package Thelia\Action * @package Thelia\Action
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*/ */
class Cart extends BaseAction implements EventSubscriberInterface class Cart extends BaseAction implements EventSubscriberInterface
{ {

View File

@@ -40,6 +40,14 @@ use Thelia\Core\Security\Exception\UsernameNotFoundException;
use Propel\Runtime\Exception\PropelException; use Propel\Runtime\Exception\PropelException;
use Thelia\Core\Event\CustomerLoginEvent; use Thelia\Core\Event\CustomerLoginEvent;
/**
*
* customer class where all actions are managed
*
* Class Customer
* @package Thelia\Action
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*/
class Customer extends BaseAction implements EventSubscriberInterface class Customer extends BaseAction implements EventSubscriberInterface
{ {

View File

@@ -31,6 +31,13 @@ use Thelia\Core\HttpFoundation\Session\Session;
use Thelia\Core\Event\TheliaEvents; use Thelia\Core\Event\TheliaEvents;
use Thelia\Core\Event\CartEvent; use Thelia\Core\Event\CartEvent;
/**
* managed cart
*
* Trait CartTrait
* @package Thelia\Cart
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*/
trait CartTrait trait CartTrait
{ {
/** /**

View File

@@ -22,6 +22,13 @@
/*************************************************************************************/ /*************************************************************************************/
namespace Thelia\Command; namespace Thelia\Command;
/**
* base class for module commands
*
* Class BaseModuleGenerate
* @package Thelia\Command
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*/
abstract class BaseModuleGenerate extends ContainerAwareCommand abstract class BaseModuleGenerate extends ContainerAwareCommand
{ {
protected $module; protected $module;

View File

@@ -30,6 +30,14 @@ use Symfony\Component\Filesystem\Exception\IOException;
use Thelia\Command\ContainerAwareCommand; use Thelia\Command\ContainerAwareCommand;
/**
* clear the cache
*
* Class CacheClear
* @package Thelia\Command
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*
*/
class CacheClear extends ContainerAwareCommand class CacheClear extends ContainerAwareCommand
{ {
protected function configure() protected function configure()

View File

@@ -29,6 +29,13 @@ use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Filesystem\Filesystem;
use Thelia\Command\ContainerAwareCommand; use Thelia\Command\ContainerAwareCommand;
/**
* try to install a new instance of Thelia
*
* Class Install
* @package Thelia\Command
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*/
class Install extends ContainerAwareCommand class Install extends ContainerAwareCommand
{ {
/** /**

View File

@@ -27,6 +27,13 @@ use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Filesystem\Filesystem;
/**
* generate a new Module
*
* Class ModuleGenerateCommand
* @package Thelia\Command
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*/
class ModuleGenerateCommand extends BaseModuleGenerate class ModuleGenerateCommand extends BaseModuleGenerate
{ {
protected function configure() protected function configure()

View File

@@ -31,6 +31,13 @@ use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Filesystem\Filesystem;
/**
* generate class model for a specific module
*
* Class ModuleGenerateModelCommand
* @package Thelia\Command
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*/
class ModuleGenerateModelCommand extends BaseModuleGenerate class ModuleGenerateModelCommand extends BaseModuleGenerate
{ {
protected function configure() protected function configure()

View File

@@ -30,6 +30,13 @@ use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Filesystem\Filesystem;
/**
* generate sql for a specific module
*
* Class ModuleGenerateSqlCommand
* @package Thelia\Command
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*/
class ModuleGenerateSqlCommand extends BaseModuleGenerate class ModuleGenerateSqlCommand extends BaseModuleGenerate
{ {
public function configure() public function configure()

View File

@@ -29,6 +29,12 @@ use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\HttpKernel\KernelInterface; use Symfony\Component\HttpKernel\KernelInterface;
/**
* cli application for Thelia
* Class Application
* @package Thelia\Core
* mfony\Component\HttpFoundation\Session\Session
*/
class Application extends BaseApplication class Application extends BaseApplication
{ {

View File

@@ -31,6 +31,7 @@ use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
* @package Thelia\Core\DependencyInjection\Compiler * @package Thelia\Core\DependencyInjection\Compiler
* *
* Source code come from Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\RegisterKernelListenersPass class * Source code come from Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\RegisterKernelListenersPass class
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*/ */
class RegisterListenersPass implements CompilerPassInterface class RegisterListenersPass implements CompilerPassInterface
{ {

View File

@@ -31,7 +31,7 @@ use Symfony\Component\DependencyInjection\Reference;
* Register parser plugins. These plugins shouild be tagged thelia.parser.register_plugin * Register parser plugins. These plugins shouild be tagged thelia.parser.register_plugin
* in the configuration. * in the configuration.
* *
* * @author Manuel Raynaud <mraynaud@openstudio.fr>
*/ */
class RegisterParserPluginPass implements CompilerPassInterface class RegisterParserPluginPass implements CompilerPassInterface
{ {

View File

@@ -28,6 +28,14 @@ use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException; use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\DependencyInjection\Reference;
/**
*
* this compiler can add many router to symfony-cms routing
*
* Class RegisterRouterPass
* @package Thelia\Core\DependencyInjection\Compiler
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*/
class RegisterRouterPass implements CompilerPassInterface class RegisterRouterPass implements CompilerPassInterface
{ {

View File

@@ -36,6 +36,14 @@ use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
use Symfony\Component\DependencyInjection\Exception\RuntimeException; use Symfony\Component\DependencyInjection\Exception\RuntimeException;
use Symfony\Component\DependencyInjection\Loader\FileLoader; use Symfony\Component\DependencyInjection\Loader\FileLoader;
/**
*
* Load, read and validate config xml files
*
* Class XmlFileLoader
* @package Thelia\Core\DependencyInjection\Loader
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*/
class XmlFileLoader extends FileLoader class XmlFileLoader extends FileLoader
{ {
/** /**

View File

@@ -36,6 +36,7 @@ use Thelia\Core\Template\ParserContext;
* *
* Class ControllerListener * Class ControllerListener
* @package Thelia\Core\EventListener * @package Thelia\Core\EventListener
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*/ */
class ControllerListener implements EventSubscriberInterface class ControllerListener implements EventSubscriberInterface
{ {

View File

@@ -25,6 +25,14 @@ namespace Thelia\Core\Factory;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
/**
* *
* try to instanciate the good action class
*
* Class ActionEventFactory
* @package Thelia\Core\Factory
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*/
class ActionEventFactory class ActionEventFactory
{ {

View File

@@ -24,6 +24,13 @@ namespace Thelia\Core\HttpFoundation;
use Symfony\Component\HttpFoundation\Request as BaseRequest; use Symfony\Component\HttpFoundation\Request as BaseRequest;
/**
* extends Symfony\Component\HttpFoundation\Request for adding some helpers
*
* Class Request
* @package Thelia\Core\HttpFoundation
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*/
class Request extends BaseRequest class Request extends BaseRequest
{ {

View File

@@ -31,6 +31,14 @@ use Thelia\Model\Cart;
use Thelia\Tools\URL; use Thelia\Tools\URL;
use Thelia\Model\Lang; use Thelia\Model\Lang;
/**
*
* extends mfony\Component\HttpFoundation\Session\Session for adding some helpers
*
* Class Session
* @package Thelia\Core\HttpFoundation\Session
* Symfony\Component\HttpFoundation\Request
*/
class Session extends BaseSession class Session extends BaseSession
{ {
// -- Language ------------------------------------------------------------ // -- Language ------------------------------------------------------------

View File

@@ -26,7 +26,7 @@ namespace Thelia\Core;
/** /**
* Root class of Thelia * Root class of Thelia
* *
* It extends Symfony\Component\HttpKernel\Kernel for changing some fonctionnality * It extends Symfony\Component\HttpKernel\Kernel for changing some features
* *
* *
* @author Manuel Raynaud <mraynaud@openstudio.fr> * @author Manuel Raynaud <mraynaud@openstudio.fr>

View File

@@ -25,6 +25,13 @@ namespace Thelia\Core;
use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\ContainerBuilder;
/**
* extends Symfony\Component\DependencyInjection\ContainerBuilder for changing some behavior
*
* Class TheliaContainerBuilder
* @package Thelia\Core
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*/
class TheliaContainerBuilder extends ContainerBuilder class TheliaContainerBuilder extends ContainerBuilder
{ {

View File

@@ -32,6 +32,13 @@ use Symfony\Component\Validator\Validation;
use Thelia\Model\ConfigQuery; use Thelia\Model\ConfigQuery;
use Thelia\Tools\URL; use Thelia\Tools\URL;
/**
* Base form class for creating form objects
*
* Class BaseForm
* @package Thelia\Form
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*/
abstract class BaseForm abstract class BaseForm
{ {
/** /**

View File

@@ -30,6 +30,11 @@ use Thelia\Model\ProductSaleElementsQuery;
use Thelia\Model\ConfigQuery; use Thelia\Model\ConfigQuery;
use Thelia\Model\ProductQuery; use Thelia\Model\ProductQuery;
/**
* Class CartAdd
* @package Thelia\Form
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*/
class CartAdd extends BaseForm class CartAdd extends BaseForm
{ {

View File

@@ -27,6 +27,11 @@ use Symfony\Component\Validator\ExecutionContextInterface;
use Thelia\Model\ConfigQuery; use Thelia\Model\ConfigQuery;
use Thelia\Model\CustomerQuery; use Thelia\Model\CustomerQuery;
/**
* Class CustomerCreation
* @package Thelia\Form
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*/
class CustomerCreation extends BaseForm class CustomerCreation extends BaseForm
{ {

View File

@@ -25,6 +25,11 @@ namespace Thelia\Form;
use Symfony\Component\Validator\Constraints; use Symfony\Component\Validator\Constraints;
/**
* Class CustomerModification
* @package Thelia\Form
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*/
class CustomerModification extends BaseForm class CustomerModification extends BaseForm
{ {
/** /**

View File

@@ -34,6 +34,7 @@ use Thelia\Model\Customer;
* *
* Class CartTraitTest * Class CartTraitTest
* @package Thelia\Tests\Cart\CartTraitTest * @package Thelia\Tests\Cart\CartTraitTest
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*/ */
class CartTraitTest extends \PHPUnit_Framework_TestCase class CartTraitTest extends \PHPUnit_Framework_TestCase
{ {

View File

@@ -22,6 +22,13 @@
/*************************************************************************************/ /*************************************************************************************/
namespace Thelia\Tests\Command; namespace Thelia\Tests\Command;
/**
* base class for testing command line command
*
* Class BaseCommandTest
* @package Thelia\Tests\Command
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*/
abstract class BaseCommandTest extends \PHPUnit_Framework_TestCase abstract class BaseCommandTest extends \PHPUnit_Framework_TestCase
{ {
public function getKernel() public function getKernel()

View File

@@ -28,6 +28,13 @@ use Thelia\Command\CacheClear;
use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Filesystem\Filesystem;
/**
* test the cache:clear command
*
* Class CacheClearTest
* @package Thelia\Tests\Command
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*/
class CacheClearTest extends \PHPUnit_Framework_TestCase class CacheClearTest extends \PHPUnit_Framework_TestCase
{ {

View File

@@ -27,6 +27,13 @@ use Symfony\Component\Filesystem\Filesystem;
use Thelia\Core\Application; use Thelia\Core\Application;
use Thelia\Command\ModuleGenerateCommand; use Thelia\Command\ModuleGenerateCommand;
/**
* test the module:generate command
*
* Class ModuleGenerateCommandTest
* @package Thelia\Tests\Command
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*/
class ModuleGenerateCommandTest extends BaseCommandTest class ModuleGenerateCommandTest extends BaseCommandTest
{ {
protected $command; protected $command;

View File

@@ -26,6 +26,11 @@ namespace Thelia\Tests\Controller;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Thelia\Controller\Front\DefaultController; use Thelia\Controller\Front\DefaultController;
/**
* Class DefaultControllerTest
* @package Thelia\Tests\Controller
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*/
class DefaultControllerTest extends \PHPUnit_Framework_TestCase class DefaultControllerTest extends \PHPUnit_Framework_TestCase
{ {

View File

@@ -4,6 +4,13 @@ namespace Thelia\Tests\Core\HttpFoundation;
use Thelia\Core\HttpFoundation\Request; use Thelia\Core\HttpFoundation\Request;
/**
* the the helpers addinf in Request class
*
* Class RequestTest
* @package Thelia\Tests\Core\HttpFoundation
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*/
class RequestTest extends \PHPUnit_Framework_TestCase class RequestTest extends \PHPUnit_Framework_TestCase
{ {

View File

@@ -28,6 +28,13 @@ use Thelia\Core\HttpFoundation\Session\Session;
use Thelia\Model\Cart; use Thelia\Model\Cart;
use Thelia\Model\Customer; use Thelia\Model\Customer;
/**
* Test the helpers adding in Session class
*
* Class SessionTest
* @package Thelia\Tests\Core\HttpFoundation\Session
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*/
class SessionTest extends \PHPUnit_Framework_TestCase class SessionTest extends \PHPUnit_Framework_TestCase
{ {