1

いくつかの phpstorm 機能が本当に気に入っているので、私は現在、この PHP 用の IDE に移行していますが、問題があります。

いくつかのコードを書きましょう:

index.php:

require('app/registry/registry.class.php');
require('app/config.php');
$registry = new Registry();

$registry->createAndStoreObject('authentication', 'auth'); 
// $registry->getObject('auth')-> THE PROBLEM COMES HERE, the ide doesn't give me any suggestion and there are some.
$registry->getObject('auth')->checkForAuthentication(); // This is working, checkForAuthentication() should be a suggestion.

authentication.class.php:

<?php
/**
 * @Description:..
 * @author:..
 * Authenticate Class.
*/
require_once('template.class.php');
class Authentication {

    private $registry; // Registry Object
    private $loggedIn; // Boolean
    private $justProcessed; // Boolean
    private $user; // User Object
    private $loginFailureReason; // String. Toma valor en caso de que no sea posible el logeo.


    /**
     * Default constructor.
     */
    public function __construct(Registry $registry)
    {
        $this->registry = $registry;
        $this->loggedIn = false;
    }

    /**
     * ..
     * @internal param $null
     * @return void ?
     */
    public function checkForAuthentication()
    {
        //..
    }

    /**
     * ..
     * @param int $id
     * @return void
     */
    public function sessionAuthenticate($id)
    {
          //....
    }

    /**
     * ..
     * @param String $e The user.
     * @param String $p The password.
     * @return void
     */
    private function postAuthenticate($e, $p)
    {
        /..
    }

}
?>

それが何か価値があるかどうか、私はすでにコードを調べました。誰でもこれを修正する方法を知っていますか?

よろしくお願いします!

編集:

動作していません

動作していません

働く

働く

4

1 に答える 1