Giter VIP home page Giter VIP logo

sound-organiser's Introduction

SoundOrganiser

Dependency Status

A Symfony project created on June 6, 2016, 11:44 am.

It was not a git repository at that time.

Will be at this location on the WWW

SoundOrganiser est une solution pour la diffusion de musique/sons/bruitages lors de spectacles.

Installation

Downloading

You can download it from GitHub or clone this repository.

Dependiencies

After downloading, you must install the dependiencies, I recommend using Composer. You have to update the configuration in app/config/parameters.yml Then you'll have to run:

php bin/console assets:install
php bin/console dump:emoticons
php bin/console doctrine:schema:update

Server Configuration

  • your server must be able to run Symfony projects (use web/config.php file to check it)
  • the php.ini upload_max_filesize must be at 11M
  • var folder must be with editable and readable by your server user
  • src/Xif/FileBundle/Uploads folder must be with editable and readable by your server user too
  • your server must be able to read .htaccess files and to do URL Rewriting

sound-organiser's People

Contributors

nils-van-zuijlen avatar

Stargazers

 avatar

Watchers

 avatar  avatar

sound-organiser's Issues

[Insight] Absolute path constants __DIR__ and __FILE__ should not be used - in src/Xif/FileBundle/Entity/File.php, line 20

in src/Xif/FileBundle/Entity/File.php, line 20

__DIR__ and __FILE__ constants may conflict with the Symfony resource overriding system

 * @ORM\Entity(repositoryClass="Xif\FileBundle\Repository\FileRepository")
 * @ORM\HasLifecycleCallbacks()
 */
class File
{
	const UPLOAD_ROOT_DIR = __DIR__.'/../Uploads/';

	/**
	 * @var int
	 *
	 * @ORM\Column(name="id", type="integer")

Posted from SensioLabsInsight

Remove tests

Controller tests must be removed, as they're not used.

[Insight] Object parameters should be type hinted - in src/Xif/…/FormModels/ContactModel.php, line 69

in src/Xif/CoreBundle/FormModels/ContactModel.php, line 69

The parameter mail, which is an object, should be typehinted.

	{
		$this->senderName = $senderName;
		return $this;
	}

	public function done($mail)
	{
		$mail->setSubject('Contact – '.$this->subject);
		$mail->setReplyTo($this->senderMail, $this->senderName);
		$mail->setFrom($this->senderMail);
		$mail->setBody('Envoyé par '.$this->senderName.' ( '.$this->senderMail.' )

Posted from SensioLabsInsight

[Insight] Boolean should be compared strictly

With booleans, only strict comparison (with === or !== operator) should be used to lower bug risks and to improve performances.

	public function removeFileAction($id, $admin)
	{
		$em = $this->getDoctrine()->getManager();

		if(null == $file = $em->getRepository('XifFileBundle:File')->find($id)) {
			throw new NotFoundHttpException('Fichier inexistant');
		}

		// utilisateur === propriétaire
		if (!$this->getUser()->getId()== $file->getOwner()->getId()

Posted from SensioLabsInsight

[Insight] Missing use statement should be avoided - in src/…/SoundOrganiserController.php, line 249

in src/Xif/SoundOrganiserBundle/Controller/SoundOrganiserController.php, line 249

The PreconditionFailedHttpException class resolves to the following class: Symfony\Component\HttpKernel\Exception\PreconditionFailedHttpException.
Did you forget to add a corresponding use statement?

						->find( (int) $POST->get('removeSong'))
						) {
						throw new PreconditionFailedHttpException('Ligne inexistante.');
					}
					if (!$songLine->getProject()->getId() == $project->getId()) {
						throw new PreconditionFailedHttpException('N\'appartient pas au projet');
					}

					$entityManager->remove($songLine);
					$entityManager->flush();
					return new Response(null, Response::HTTP_OK);

Posted from SensioLabsInsight

[Insight] Source code should not contain TODO comments - in web/bootstrap/

in web/bootstrap/

TODO comments are left in the code when a feature (or a bug) isn't completely developed (or fixed). You should complete the implementation and remove the comment.

					// Document context
					if ( nodeType === 9 ) {
						if ( (elem = context.getElementById( m )) ) {

							// Support: IE, Opera, Webkit
							// TODO: identify versions
							// getElementById can match elements by name instead of ID
							if ( elem.id === m ) {
								results.push( elem );
								return results;
							}

Posted from SensioLabsInsight

[Insight] A Symfony application should be bootable

SensioLabsInsight was not able to boot your Symfony application. If you need to customize files or run commands to make it bootable, you can edit your SensioLabsInsight project configuration to override the default "pre_composer_script" and/or "post_composer_script" settings.

Symfony\Component\Config\Definition\Exception\InvalidConfigurationException: The path "fos_user.from_email.address" cannot contain an empty value, but got null. in /home/foobar/code/vendor/symfony/symfony/src/Symfony/Component/Config/Definition/VariableNode.php:88
Stack trace:
#0 /home/foobar/code/vendor/symfony/symfony/src/Symfony/Component/Config/Definition/BaseNode.php(303): Symfony\Component\Config\Definition\VariableNode->finalizeValue(NULL)
#1 /home/foobar/code/vendor/symfony/symfony/src/Symfony/Component/Config/Definition/ArrayNode.php(254): Symfony\Component\Config\Definition\BaseNode->finalize(NULL)
#2 /home/foobar/code/vendor/symfony/symfony/src/Symfony/Component/Config/Definition/BaseNode.php(303): Symfony\Component\Config\Definition\ArrayNode->finalizeValue(Array)
#3 /home/foobar/code/vendor/symfony/symfony/src/Symfony/Component/Config/Definition/ArrayNode.php(254): Symfony\Component\Config\Definition\BaseNode->finalize(Array)
#4 /home/foobar/code/vendor/symfony/symfony/src/Symfony/Component/Config/Definition/BaseNode.php(303): Symfony\Component\Config\Definition\ArrayNode->finalizeValue(Array)
#5 /home/foobar/code/vendor/symfony/symfony/src/Symfony/Component/Config/Definition/Processor.php(37): Symfony\Component\Config\Definition\BaseNode->finalize(Array)
#6 /home/foobar/code/vendor/symfony/symfony/src/Symfony/Component/Config/Definition/Processor.php(50): Symfony\Component\Config\Definition\Processor->process(Object(Symfony\Component\Config\Definition\ArrayNode), Array)
#7 /home/foobar/code/vendor/friendsofsymfony/user-bundle/DependencyInjection/FOSUserExtension.php(45): Symfony\Component\Config\Definition\Processor->processConfiguration(Object(FOS\UserBundle\DependencyInjection\Configuration), Array)
#8 /home/foobar/code/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/MergeExtensionConfigurationPass.php(55): FOS\UserBundle\DependencyInjection\FOSUserExtension->load(Array, Object(Symfony\Component\DependencyInjection\ContainerBuilder))
#9 /home/foobar/code/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/MergeExtensionConfigurationPass.php(39): Symfony\Component\DependencyInjection\Compiler\MergeExtensionConfigurationPass->process(Object(ExtendedContainerBuilder))
#10 /home/foobar/code/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php(104): Symfony\Component\HttpKernel\DependencyInjection\MergeExtensionConfigurationPass->process(Object(ExtendedContainerBuilder))
#11 /home/foobar/code/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php(545): Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object(ExtendedContainerBuilder))
#12 phar:///home/foobar/bin/insight.phar/src/Insight/Sniffer/ExtendedContainerBuilder.php(13): Symfony\Component\DependencyInjection\ContainerBuilder->compile()
#13 /home/foobar/code/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(477): ExtendedContainerBuilder->compile()
#14 /home/foobar/code/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(117): Symfony\Component\HttpKernel\Kernel->initializeContainer()
#15 /home/foobar/code/app/InsightAppKernel.php(15) : eval()'d code(7): Symfony\Component\HttpKernel\Kernel->boot()
#16 /home/foobar/code/app/InsightAppKernel.php(15): eval()
#17 {main}

Posted from SensioLabsInsight

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.