-
Notifications
You must be signed in to change notification settings - Fork 18
Feature/0.0.2.6 #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feature/SMARTER-1406
Are you sure you want to change the base?
Feature/0.0.2.6 #19
Conversation
…petición de manera repetida.
…n (lesser key better).
…ctionName+"Params"). Add documentation for validation services. Fix some documentation errors.
|
||
#### En caso de no usar composer #### | ||
Se puede hacer uso de las clases mediante la implementacion manual haciendo uso del archivo SWSDK.php en lugar del archivo vendor.php | ||
Se puede hacer uso de las clases mediante la implementan manual haciendo uso del archivo SWSDK.php en lugar del archivo vendor.php |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Esta mal redactado, debería ser implementación no se por que cambiaste esta palabra XD
return new stampServiceCached($params); | ||
return new StampService($params); | ||
} | ||
return new StampService($params); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tal vez podria simplificarse asi:
if(isset($params["cached"]) && $params["cached"]){ return new stampServiceCached($params); } return new StampService($params);
public static function StampV1($xml, $isb64 = false, $ttl = 600){ | ||
try{ | ||
$sello = sha1(self::getSignXml($xml)); | ||
if(apc_add($sello, sha1($xml), $ttl)){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Si no mal recuerdo, me parece que la forma de escribir el if else en php es como js
if(condicion) {
//codigo
} else {
//codigo
}
} | ||
|
||
public static function StampVersion2V1($xml, $isb64 = false, $ttl = 600){ | ||
try{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tal vez seria bueno ser un poco mas especifico con el nombre del método, desde mi punto de vista StampVersion2V1 no me dice mucho
|
||
public function __construct($params) { | ||
parent::__construct($params); | ||
$c = count($params); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
normalmente las buenas practicas te indican que utilizes variables mas descriptivas para que a simple vista sepas de que trata $c no me indica que es eso
* Paso 2: | ||
Dar click en **Download** | ||
* Paso 3: | ||
Dar clic en **Composer-Setup.exe** esto abrira una ventana en su explorador para que guarde el archivo composer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
abrirá acento en la a
composer install | ||
``` | ||
De esta manera descarga las dependencias que antes escribimos dentro del require que en nuestro caso es el **SDK** | ||
De esta manera descarga las dependencias que antes escribimos dentro del requiere que en nuestro caso es el **SDK** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aquí creo si es "require" porque hablas de las dependencias podrías ponerlo entre comillas tal vez para que se entienda
New: Clase para timbrado "cached" usando la librería APCU en el servidor del cliente. Para los clientes que no lo usan no afecta, ya que el objecto "cached" se activa a través del constructor de la clase Stamp
Fix: date interval añadido en la clase "Services" para token infinito.