Código PHP:
The autoloader expected class "Branch\MainBundle\Messages\Messages" to be defined in file "/var/www/html/piramidal/src/Branch/MainBundle/Messages/Messages.php". The file was found but the class was not in it, the class name or namespace probably has a typo.
Messages.php
Código PHP:
<?php
// src/Branch/MainBundle/Messages/Messages.php
namespace BranchMainBundleMessagesMessages;
use SymfonyComponentFormAbstractType;
/**
* Messages when some events happens.
*
*/
class Messages {
protected $message;
public function successAction() {
$this->$message = 'Formulario enviado correctamente';
return new Response($this->$message);
}
}
Código PHP:
use BranchMainBundleMessagesMessages;
Nota: Por algún motivo se ha tragado las barras inclinadas al poner los namespaces y los use.
Gracias de antemano